CVE-2024-21512
JSON

8.2high

mysql2 vulnerable to Prototype Pollution

Severity
8.2high CVSS:3.1 by snyk
Exploit likelihood
3.14% (higher than 88% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-pmh2-wpjm-fj45

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.

Affected

Product or packageVersionsReported by
mysql2before 3.9.8CVE List
org.webjars.npm:mysql2before *CVE List
mysql2 mysql2before 3.9.8CVE List
mysql2 (npm)before 3.9.8GitHub Advisory Database

All scores

snyk8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P
GitHub8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

Classification

CWE-1321

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Las versiones del paquete mysql2 anteriores a la 3.9.8 son vulnerables a la contaminación de prototipos debido a una sanitización inadecuada de las entradas del usuario pasadas a campos y tablas cuando se utilizan nestTables.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-21512 changed 2024-08-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-pmh2-wpjm-fj45 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-21512 changed 2026-06-17Public domain