{"id":"GHSA-mqr2-w7wj-jjgr","revision":"6c618455a94d4c3f8b175c170d83e955","records":[{"revision":"6c618455a94d4c3f8b175c170d83e955","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-mqr2-w7wj-jjgr","aliases":["CVE-2024-21507"],"title":"mysql2 cache poisoning vulnerability","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.","state":0,"publishedAt":"2024-04-10T15:30:39+00:00","modifiedAt":"2026-09-10T03:50:12.7755528+00:00","affected":[{"ecosystem":"npm","name":"mysql2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.9.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","score":null,"severity":null},{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2024-21507","https://github.com/sidorares/node-mysql2/pull/2424","https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818","https://blog.slonser.info/posts/mysql2-attacker-configuration","https://github.com/sidorares/node-mysql2","https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300"],"sourceUrl":"https://github.com/advisories/GHSA-mqr2-w7wj-jjgr","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-mqr2-w7wj-jjgr","identifiers":["GHSA-mqr2-w7wj-jjgr","CVE-2024-21507"]},"retained":false,"historicalAffected":[]}],"coverage":[]}