Technology · npm
mysql2 (npm) vulnerabilities
Updated . Rebuilt every hour.
Junglewise Threat Intelligence has tracked 9 vulnerabilities in mysql2 (npm): 0 in the last 7 days and 4 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 credentials, was published on 1 September 2026.
- Last 7 days
- 0
- Last 90 days
- 4
- Critical, all time
- 0
- Exploited in the wild
- 0
About mysql2 (npm)
MySQL client library for Node.js.
Latest mysql2 (npm) vulnerabilities
- MySQL2 auth plugin downgrade to mysql_clear_password leaks credentialsmediumCVSS 4
- MySQL2 auth plugin downgrade to mysql_clear_password leaks plaintext credentialshighCVSS 8.2
- MySQL2 unbounded zlib inflate decompression-bomb DoSlowCVSS 3.1
- MySQL2 unbounded zlib inflate decompression bombmediumCVSS 5.9
- CVE-2024-21512: mysql2 prototype pollution in nestTableslowCVSS 3.1EPSS 3.1%
- CVE-2024-21511: mysql2 for Node arbitrary code injection via timezone parameterlowCVSS 3.1EPSS 1.0%
- CVE-2024-21508: mysql2 remote code execution in readCodeFor functionlowCVSS 3.1EPSS 2.5%
- CVE-2024-21507: mysql2 cache poisoning vulnerabilitylowCVSS 3.1EPSS 0.7%
- CVE-2024-21509: mysql2 prototype poisoning in result parserlowCVSS 3.1EPSS 1.0%
Most severe mysql2 (npm) vulnerabilities
Exploited in the wild first, then by severity and CVSS score.
- MySQL2 auth plugin downgrade to mysql_clear_password leaks plaintext credentialshighCVSS 8.2
- MySQL2 unbounded zlib inflate decompression bombmediumCVSS 5.9
- MySQL2 auth plugin downgrade to mysql_clear_password leaks credentialsmediumCVSS 4
- CVE-2024-21512: mysql2 prototype pollution in nestTableslowCVSS 3.1EPSS 3.1%
- CVE-2024-21508: mysql2 remote code execution in readCodeFor functionlowCVSS 3.1EPSS 2.5%
- CVE-2024-21511: mysql2 for Node arbitrary code injection via timezone parameterlowCVSS 3.1EPSS 1.0%
- CVE-2024-21509: mysql2 prototype poisoning in result parserlowCVSS 3.1EPSS 1.0%
- CVE-2024-21507: mysql2 cache poisoning vulnerabilitylowCVSS 3.1EPSS 0.7%
- MySQL2 unbounded zlib inflate decompression-bomb DoSlowCVSS 3.1
Vulnerabilities per week
The last 13 weeks, by the week each vulnerability was published.
| Week of | Bar | Vulns | Critical |
|---|---|---|---|
| 29 Jun 2026 | 0 | 0 | |
| 6 Jul 2026 | 0 | 0 | |
| 13 Jul 2026 | 0 | 0 | |
| 20 Jul 2026 | 0 | 0 | |
| 27 Jul 2026 | 0 | 0 | |
| 3 Aug 2026 | 0 | 0 | |
| 10 Aug 2026 | 0 | 0 | |
| 17 Aug 2026 | 0 | 0 | |
| 24 Aug 2026 | 0 | 0 | |
| 31 Aug 2026 | 4 | 0 | |
| 7 Sep 2026 | 0 | 0 | |
| 14 Sep 2026 | 0 | 0 | |
| 21 Sep 2026 | 0 | 0 |
How this is built
Junglewise Threat Intelligence collects vulnerabilities from NVD, GitHub Security Advisories, OSV, the CISA Known Exploited Vulnerabilities catalog, FIRST EPSS and vendor advisories, and matches each one to the technologies and vendors it affects. Dates are the date a vulnerability was published, in UTC.
The pages are rebuilt from the database every hour. Frozen weekly and monthly reports never change once published, so they can be cited.
Use this data
The same data is at https://junglewise.ai/threats/technologies/mysql2.json, for scripts and language models. It is free to reuse under CC BY 4.0 with a link back to this page.
Cite as: Junglewise Threat Intelligence, "mysql2 (npm) vulnerabilities", https://junglewise.ai/threats/technologies/mysql2, 26 September 2026.