CVE-2024-21512
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 package | Versions | Reported by |
|---|---|---|
| mysql2 | before 3.9.8 | CVE List |
| org.webjars.npm:mysql2 | before * | CVE List |
| mysql2 mysql2 | before 3.9.8 | CVE List |
| mysql2 (npm) | before 3.9.8 | GitHub Advisory Database |
All scores
| snyk | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P |
| GitHub | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21512 changed 2024-08-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pmh2-wpjm-fj45 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-21512 changed 2026-06-17 | Public domain |