VDB
CVE-2024-21512
CVE-2024-21512
PUBLISHED
CVSS 8.2 HIGH
mysql2 vulnerable to Prototype Pollution
Reported by snyk · Published May 29, 2024
mysql2 is fixed in 3.9.8 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| mysql2 | npm | 3.9.8 |
| sqlpad | Chainguard | 7.4.3-r0 |
| sqlpad | Wolfi | 7.4.3-r0 |
| mysql2 | n/a | 3.9.8 |
| mysql2 | mysql2 | 3.9.8 |
Risk scores
CVSS 3.1
8.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | mysql2 | 0 |
| n/a | org.webjars.npm:mysql2 | 0 |
| npm | mysql2 | 0 |
| n/a | mysql2 | 0 |
| chainguard | sqlpad | 0 |
| mysql2 | mysql2 | 0 |
| n/a | org.webjars.npm:mysql2 | 0 |
| wolfi | sqlpad | 0 |
Timeline
- May 29, 2024 EPSS Score (30 in total, the first dated here)
- May 29, 2024 CVE Published
- Jun 4, 2024 PoC Published (4 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (8 in total, the first dated here)
- Jan 18, 2026 CVE Updated
- Mar 10, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-21512
vulnetix vdb fixes CVE-2024-21512
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-21512/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart