{"cve":"CVE-2024-21507","nvd":{"published":"2024-04-10T05:15:48.290","modified":"2026-06-17T07:09:38.320","status":"Analyzed","description":"Versions of the package mysql2 before 3.9.3 are vulnerable to Improper Input Validation through the keyFromFields function, resulting in cache poisoning. An attacker can inject a colon (:) character within a value of the attacker-crafted key.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3},"cwes":["CWE-20"],"references":["https://blog.slonser.info/posts/mysql2-attacker-configuration/","https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818","https://github.com/sidorares/node-mysql2/pull/2424","https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300","https://blog.slonser.info/posts/mysql2-attacker-configuration/"],"products":["sidorares:mysql2"],"source":"nvd","synced_at":"2026-10-19T21:48:32.179249784+00:00"},"epss":{"cve":"CVE-2024-21507","score":0.00744,"percentile":0.54782,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-mqr2-w7wj-jjgr","url":"https://osv.dev/vulnerability/GHSA-mqr2-w7wj-jjgr","summary":"mysql2 cache poisoning vulnerability","modified":"2026-09-10T03:50:12.775552783Z","packages":[{"ecosystem":"npm","name":"mysql2","purl":"pkg:npm/mysql2","ranges":["<3.9.3"],"fixed":["3.9.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}