High severity8.2NVD Advisory· Published May 29, 2024· Updated Apr 15, 2026
CVE-2024-21512
CVE-2024-21512
Description
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.
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.8 | 3.9.8 |
Affected products
5- osv-coords5 versionspkg:apk/chainguard/sqlpadpkg:apk/chainguard/sqlpad-compatpkg:apk/wolfi/sqlpadpkg:apk/wolfi/sqlpad-compatpkg:npm/mysql2
< 7.4.3-r0+ 4 more
- (no CPE)range: < 7.4.3-r0
- (no CPE)range: < 7.4.3-r0
- (no CPE)range: < 7.4.3-r0
- (no CPE)range: < 7.4.3-r0
- (no CPE)range: < 3.9.8
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-pmh2-wpjm-fj45ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-21512ghsaADVISORY
- gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4anvdWEB
- github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bcnvdWEB
- github.com/sidorares/node-mysql2/pull/2702nvdWEB
- security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010nvdWEB
- security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580nvdWEB
News mentions
0No linked articles in our index yet.