# mysql2 (npm) vulnerabilities

Source: https://junglewise.ai/threats/technologies/mysql2  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Updated: 13 November 2026, 03:07 UTC. Rebuilt every hour.  
Data: https://junglewise.ai/threats/technologies/mysql2.json  
License: CC BY 4.0 with a link back

Junglewise Threat Intelligence has tracked 7 vulnerabilities in mysql2 (npm): 0 in the last 7 days and 2 in the last 90 days, 0 of them critical and 0 exploited in the wild. The most recent, MySQL2 auth plugin downgrade to mysql_clear_password leaks plaintext credentials, was published on 1 September 2026. Nothing was published in the last eight weeks.

## Counts

- Last 7 days: 0
- Last 30 days: 0
- Last 90 days: 2
- All time: 7 (0 critical, 0 exploited in the wild)

## About mysql2 (npm)

Node.js driver for MySQL database connectivity and query execution.

## Latest mysql2 (npm) vulnerabilities

- [MySQL2 auth plugin downgrade to mysql_clear_password leaks plaintext credentials](https://junglewise.ai/threats/mysql2-auth-plugin-downgrade-to-mysql-clear-password-leaks-plaintext-4f504449) (high, CVSS 8.2, published 1 Sep 2026)
- [MySQL2 unbounded zlib inflate decompression-bomb DoS](https://junglewise.ai/threats/mysql2-unbounded-zlib-inflate-decompression-bomb-dos-1b8791b1) (low, CVSS 3.1, published 31 Aug 2026)
- [CVE-2024-21512: mysql2 prototype pollution in nestTables](https://junglewise.ai/threats/cve-2024-21512-mysql2-prototype-pollution-in-nesttables) (low, CVSS 3.1, published 30 May 2024)
- [CVE-2024-21511: mysql2 for Node arbitrary code injection via timezone parameter](https://junglewise.ai/threats/cve-2024-21511-mysql2-for-node-arbitrary-code-injection-via-timezone-parameter) (low, CVSS 3.1, published 23 Apr 2024)
- [CVE-2024-21508: mysql2 remote code execution in readCodeFor function](https://junglewise.ai/threats/cve-2024-21508-mysql2-remote-code-execution-in-readcodefor-function) (low, CVSS 3.1, published 11 Apr 2024)
- [CVE-2024-21509: mysql2 prototype poisoning in result parser](https://junglewise.ai/threats/cve-2024-21509-mysql2-prototype-poisoning-in-result-parser) (low, CVSS 3.1, published 10 Apr 2024)
- [CVE-2024-21507: mysql2 cache poisoning vulnerability](https://junglewise.ai/threats/cve-2024-21507-mysql2-cache-poisoning-vulnerability) (low, CVSS 3.1, published 10 Apr 2024)

## Most severe mysql2 (npm) vulnerabilities

- [MySQL2 auth plugin downgrade to mysql_clear_password leaks plaintext credentials](https://junglewise.ai/threats/mysql2-auth-plugin-downgrade-to-mysql-clear-password-leaks-plaintext-4f504449) (high, CVSS 8.2, published 1 Sep 2026)
- [CVE-2024-21512: mysql2 prototype pollution in nestTables](https://junglewise.ai/threats/cve-2024-21512-mysql2-prototype-pollution-in-nesttables) (low, CVSS 3.1, published 30 May 2024)
- [CVE-2024-21508: mysql2 remote code execution in readCodeFor function](https://junglewise.ai/threats/cve-2024-21508-mysql2-remote-code-execution-in-readcodefor-function) (low, CVSS 3.1, published 11 Apr 2024)
- [CVE-2024-21511: mysql2 for Node arbitrary code injection via timezone parameter](https://junglewise.ai/threats/cve-2024-21511-mysql2-for-node-arbitrary-code-injection-via-timezone-parameter) (low, CVSS 3.1, published 23 Apr 2024)
- [CVE-2024-21509: mysql2 prototype poisoning in result parser](https://junglewise.ai/threats/cve-2024-21509-mysql2-prototype-poisoning-in-result-parser) (low, CVSS 3.1, published 10 Apr 2024)
- [CVE-2024-21507: mysql2 cache poisoning vulnerability](https://junglewise.ai/threats/cve-2024-21507-mysql2-cache-poisoning-vulnerability) (low, CVSS 3.1, published 10 Apr 2024)
- [MySQL2 unbounded zlib inflate decompression-bomb DoS](https://junglewise.ai/threats/mysql2-unbounded-zlib-inflate-decompression-bomb-dos-1b8791b1) (low, CVSS 3.1, published 31 Aug 2026)

## Vulnerabilities per week

Nothing was published in the last eight weeks.

| Week of | Vulns | Critical | Exploited |
| --- | --- | --- | --- |
| 17 Aug 2026 | 0 | 0 | 0 |
| 24 Aug 2026 | 0 | 0 | 0 |
| 31 Aug 2026 | 2 | 0 | 0 |
| 7 Sep 2026 | 0 | 0 | 0 |
| 14 Sep 2026 | 0 | 0 | 0 |
| 21 Sep 2026 | 0 | 0 | 0 |
| 28 Sep 2026 | 0 | 0 | 0 |
| 5 Oct 2026 | 0 | 0 | 0 |
| 12 Oct 2026 | 0 | 0 | 0 |
| 19 Oct 2026 | 0 | 0 | 0 |
| 26 Oct 2026 | 0 | 0 | 0 |
| 2 Nov 2026 | 0 | 0 | 0 |
| 9 Nov 2026 | 0 | 0 | 0 |

## Other npm technologies

- [openclaw (npm)](https://junglewise.ai/threats/technologies/npm-openclaw): 214 vulnerabilities
- [flowise (npm)](https://junglewise.ai/threats/technologies/flowise): 133 vulnerabilities
- [parse-server (npm)](https://junglewise.ai/threats/technologies/parse-server): 117 vulnerabilities
- [vm2 (npm)](https://junglewise.ai/threats/technologies/vm2): 111 vulnerabilities
- [electron (npm)](https://junglewise.ai/threats/technologies/electron): 77 vulnerabilities
- [ghost (npm)](https://junglewise.ai/threats/technologies/ghost): 74 vulnerabilities
- [n8n (npm)](https://junglewise.ai/threats/technologies/npm-n8n): 64 vulnerabilities
- [hono (npm)](https://junglewise.ai/threats/technologies/hono): 62 vulnerabilities
- [directus (npm)](https://junglewise.ai/threats/technologies/directus): 61 vulnerabilities
- [nocodb (npm)](https://junglewise.ai/threats/technologies/nocodb): 54 vulnerabilities
- [undici (npm)](https://junglewise.ai/threats/technologies/undici): 53 vulnerabilities
- [@budibase/server (npm)](https://junglewise.ai/threats/technologies/budibase-server): 42 vulnerabilities

## Sources

NVD, GitHub Security Advisories, OSV, the CISA Known Exploited Vulnerabilities catalog, FIRST EPSS and vendor advisories. Rebuilt every hour. Cite as: Junglewise Threat Intelligence, "mysql2 (npm) vulnerabilities", https://junglewise.ai/threats/technologies/mysql2, 13 November 2026.
