Prototype pollution in mysql2
Priority HIGH 75CWE-1321Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.03139 87th percentileScored 2026-11-07
Fix Fixed mysql2: 3.9.8mysql2 (npm): 3.9.8
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | mysql2 | before 3.9.8 | 3.9.8 | Patch available | CNA |
| — | org.webjars.npm:mysql2 | all versions | — | No fix listed | CNA |
| — | mysql2 (npm) | before 3.9.8 | 3.9.8 | Patch available | GHSA-pmh2-wpjm-fj45 |
- mysql2 Vendor— Affected before 3.9.8 Fixed in 3.9.8 Patch available CNA
- org.webjars.npm:mysql2 Vendor— Affected all versions Fixed in — No fix listed CNA
- mysql2 (npm) Vendor— Affected before 3.9.8 Fixed in 3.9.8 Patch available GHSA-pmh2-wpjm-fj45
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:mysql2:mysql2:-:*:*:*:*:*:*:* | not specified by CISA-ADP | — | — |
- cpe:2.3:a:mysql2:mysql2:-:*:*:*:*:*:*:* Versions not specified by CISA-ADP — ·—
Remediation
- Fix · CNA mysql2 Fixed in 3.9.8
- Fix · GHSA-pmh2-wpjm-fj45 mysql2 (npm) Fixed in 3.9.8 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 1 product
- Red Hat Developer Hub 1
Timeline
- 2026-10-02 Threatist record created from CVE-2024-21512
- 2026-10-03 Alias added: GHSA-pmh2-wpjm-fj45
- 2026-10-27 Affected versions changed · Red Hat
References
Sources
- CVE-2024-21512 · CVE Program
- CVE-2024-21512 · NVD
- FIRST EPSS
- GHSA-pmh2-wpjm-fj45 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-21512 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences