CVE-2024-21509: Versions of the package mysql2 before 3.9.4 are vulnerable to Prototype Poisoning due to insecure results obje
CVE-2024-21509 is a medium-severity flaw (CVSS 6.5) affecting mysql2. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 this priority
- Public exploit reference
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.5 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 1.0% (top 39%) |
| CISA exploited list | No |
| Weakness | CWE-1321 |
| Published | 2024-04-10 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-21509?
mysql2: upgrade to 3.9.4. Exact commands for each OS are on this page.
Is CVE-2024-21509 being exploited?
CVE-2024-21509 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-21509 affect?
CVE-2024-21509 affects mysql2. Severity is medium (CVSS 6.5). 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.
How urgent is CVE-2024-21509?
Priority 53/100. Public exploit reference; Remotely exploitable, no login, no user action; On your watchlist
Related CVEs
- CVE-2024-21507 MEDIUM 6.5 UPGRADE Versions of the package mysql2 before 3.9.3 are vulnerable to Improper Input Validation through the keyFromFie