CVE-2024-21512mysql2
High 8.2 No auth needed
Follow: this CVE · mysql2 · mysql2 We alert you by email or Slack (account required).
- Priority
- 65
- CVSS 3.1
- 8.2
- EPSS
- 4.6% probability of exploitation in 30 days · percentile 92
- Auth required
- No
- Published
- May 29, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1321
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
What happens
Versions of the package mysql2 before 3.9.8 are vulnerable to Prototype Pollution due to improper user input sanitization passed to fields and tables when using nestTables.
What to do
- Apply the vendor's security update for mysql2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | mysql2 |
< 3.9.8 |
3.9.8 |
npm install mysql2@3.9.8 |
Per OSV / GitHub Advisories (GHSA-pmh2-wpjm-fj45). Check the version in your lockfile before upgrading.
Affected products
- mysql2 · mysql2
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.