Read the docs
TI-2024-14265 Aliases CVE-2024-21509GHSA-49j4-86m8-q2jw

Prototype pollution in mysql2

Priority HIGH 68CWE-1321Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
None · Low · 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.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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00955 61st percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Fixed mysql2: 3.9.4mysql2 (npm): 3.9.4

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.43.9.4Patch availableCNA
—mysql2 (npm)before 3.9.43.9.4Patch availableGHSA-49j4-86m8-q2jw
  • mysql2 Vendor— Affected before 3.9.4 Fixed in 3.9.4 Patch available CNA
  • mysql2 (npm) Vendor— Affected before 3.9.4 Fixed in 3.9.4 Patch available GHSA-49j4-86m8-q2jw

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:sidorares:mysql2:*:*:*:*:*:*:*:*before 3.9.4VulnerableSidorares
  • cpe:2.3:a:sidorares:mysql2:*:*:*:*:*:*:*:* Versions before 3.9.4 Vulnerable ·Sidorares

Remediation

  • Fix · CNA mysql2 Fixed in 3.9.4
  • Fix · GHSA-49j4-86m8-q2jw mysql2 (npm) Fixed in 3.9.4 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. 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-21509
  2. 2026-10-03 Alias added: GHSA-49j4-86m8-q2jw
  3. 2026-10-27 Affected versions changed · Red Hat

References

  • TI-2024-14263 Improper input validation in mysql2 CVSS 3.1MEDIUM 6.5

Sources