CVE-2024-21509
JSON

6.5medium

mysql2 vulnerable to Prototype Poisoning

Severity
6.5medium CVSS:3.1 by snyk
Exploit likelihood
0.95% (higher than 62% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-49j4-86m8-q2jw

Description

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.

Affected

Product or packageVersionsReported by
mysql2before 3.9.4CVE List
mysqljs mysql2before 3.9.4CVE List
mysql2 (npm)before 3.9.4GitHub Advisory Database
sidorares mysql2before 3.9.4NVD

All scores

snyk6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L/E:P
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

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.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.

GitHub Advisory Database

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.

NVD (es)

Las versiones del paquete mysql2 anteriores a la 3.9.4 son vulnerables al envenenamiento de prototipos debido a la creación insegura de objetos de resultados y a una desinfección inadecuada de las entradas del usuario pasadas a través de parserFn en text_parser.js y binario_parser.js.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-21509 changed 2024-08-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-49j4-86m8-q2jw changed 2026-09-10CC-BY-4.0
NVDCVE-2024-21509 changed 2026-06-17Public domain