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.

PackageEcosystemFixed in
mysql2npm3.9.8
sqlpadChainguard7.4.3-r0
sqlpadWolfi7.4.3-r0
mysql2n/a3.9.8
mysql2mysql23.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

VendorProductVersions
n/amysql20
n/aorg.webjars.npm:mysql20
npmmysql20
n/amysql20
chainguardsqlpad0
mysql2mysql20
n/aorg.webjars.npm:mysql20
wolfisqlpad0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›