Read the docs
TI-2024-14268 Aliases CVE-2024-21512GHSA-pmh2-wpjm-fj45

Prototype pollution in mysql2

Priority HIGH 75CWE-1321Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
None · High · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.03139 87th percentileScored 2026-11-07
Fix Fixed mysql2: 3.9.8mysql2 (npm): 3.9.8

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
—mysql2before 3.9.83.9.8Patch availableCNA
—org.webjars.npm:mysql2all versions—No fix listedCNA
—mysql2 (npm)before 3.9.83.9.8Patch availableGHSA-pmh2-wpjm-fj45
  • mysql2 Vendor— Affected before 3.9.8 Fixed in 3.9.8 Patch available CNA
  • org.webjars.npm:mysql2 Vendor— Affected all versions Fixed in — No fix listed CNA
  • mysql2 (npm) Vendor— Affected before 3.9.8 Fixed in 3.9.8 Patch available GHSA-pmh2-wpjm-fj45

CPE names CISA-ADP · 1

CPEVersionsRoleVendor
cpe:2.3:a:mysql2:mysql2:-:*:*:*:*:*:*:*not specified by CISA-ADP——
  • cpe:2.3:a:mysql2:mysql2:-:*:*:*:*:*:*:* Versions not specified by CISA-ADP — ·—

Remediation

  • Fix · CNA mysql2 Fixed in 3.9.8
  • Fix · GHSA-pmh2-wpjm-fj45 mysql2 (npm) Fixed in 3.9.8 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat Developer Hub 1

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-21512
  2. 2026-10-03 Alias added: GHSA-pmh2-wpjm-fj45
  3. 2026-10-27 Affected versions changed · Red Hat

References

Sources