Medium severity6.5NVD Advisory· Published Apr 10, 2024· Updated Jun 17, 2026
CVE-2024-21509
CVE-2024-21509
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
mysql2npm | < 3.9.4 | 3.9.4 |
Affected products
7- mysql2/mysql2description
- osv-coords5 versionspkg:apk/chainguard/sqlpadpkg:apk/chainguard/sqlpad-compatpkg:apk/wolfi/sqlpadpkg:apk/wolfi/sqlpad-compatpkg:npm/mysql2
< 7.4.1-r4+ 4 more
- (no CPE)range: < 7.4.1-r4
- (no CPE)range: < 7.4.1-r4
- (no CPE)range: < 7.4.1-r4
- (no CPE)range: < 7.4.1-r4
- (no CPE)range: < 3.9.4
Patches
Vulnerability mechanics
References
9- github.com/sidorares/node-mysql2/commit/4a964a3910a4b8de008696c554ab1b492e9b4691nvdPatchWEB
- blog.slonser.info/posts/mysql2-attacker-configuration/nvdExploitPermissions Required
- github.com/sidorares/node-mysql2/pull/2574nvdExploitIssue TrackingWEB
- security.snyk.io/vuln/SNYK-JS-MYSQL2-6591084nvdExploitThird Party AdvisoryWEB
- github.com/advisories/GHSA-49j4-86m8-q2jwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-21509ghsaADVISORY
- blog.slonser.info/posts/mysql2-attacker-configurationghsaWEB
- github.com/sidorares/node-mysql2/blob/fd3d117da82cc5c5fa5a3701d7b33ca77691bc61/lib/parsers/text_parser.js%23L134nvdBroken LinkWEB
- github.com/sidorares/node-mysql2/releases/tag/v3.9.4nvdRelease NotesWEB
News mentions
0No linked articles in our index yet.