CVE-2024-21512
HIGH 8.2CVSS 3.1mysql2 vulnerable to Prototype Pollution
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.
- Published
- 29 May 2024
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Deferred
- Weakness
- CWE-1321
- Also known as
- GHSA-pmh2-wpjm-fj45
- Sources
- NVDJSONOSV GHSA-pmh2-wpjm-fj45JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | mysql2 | < 3.9.8 | 3.9.8 |
References
- https://gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4a · WEB
- https://github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bc · WEB
- https://github.com/sidorares/node-mysql2/pull/2702 · WEB
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010 · WEB
- https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21512 · ADVISORY
- https://github.com/sidorares/node-mysql2 · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 29 May 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 30 May 2024)