Prototype pollution in mysql2
Priority HIGH 68CWE-1321Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · 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.4 are vulnerable to Prototype Poisoning due to insecure results object creation and improper user input sanitization passed through parserFn in text_parser.js and binary_parser.js.
Why it matters now
Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00955 61st percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Fixed mysql2: 3.9.4mysql2 (npm): 3.9.4
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.4 | 3.9.4 | Patch available | CNA |
| — | mysql2 (npm) | before 3.9.4 | 3.9.4 | Patch available | GHSA-49j4-86m8-q2jw |
- mysql2 Vendor— Affected before 3.9.4 Fixed in 3.9.4 Patch available CNA
- mysql2 (npm) Vendor— Affected before 3.9.4 Fixed in 3.9.4 Patch available GHSA-49j4-86m8-q2jw
Remediation
- Fix · CNA mysql2 Fixed in 3.9.4
- Fix · GHSA-49j4-86m8-q2jw mysql2 (npm) Fixed in 3.9.4 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. 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-21509
- 2026-10-03 Alias added: GHSA-49j4-86m8-q2jw
- 2026-10-27 Affected versions changed · Red Hat
References
Exploit 2
More Sidorares Mysql2 vulnerabilities
- TI-2024-14263 Improper input validation in mysql2 CVSS 3.1MEDIUM 6.5
Sources
- CVE-2024-21509 · CVE Program
- CVE-2024-21509 · NVD
- FIRST EPSS
- GHSA-49j4-86m8-q2jw · GitHub Advisory Database · CC BY 4.0
- CVE-2024-21509 · 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