{"id":"GHSA-mqr2-w7wj-jjgr","summary":"mysql2 cache poisoning vulnerability","details":"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.","aliases":["CVE-2024-21507"],"modified":"2026-02-04T02:45:01.876420Z","published":"2024-04-10T15:30:39Z","related":["CGA-3xvg-vrvq-h3mg"],"database_specific":{"cwe_ids":["CWE-20"],"github_reviewed_at":"2024-04-12T13:49:53Z","github_reviewed":true,"nvd_published_at":"2024-04-10T05:15:48Z","severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21507"},{"type":"WEB","url":"https://github.com/sidorares/node-mysql2/pull/2424"},{"type":"WEB","url":"https://github.com/sidorares/node-mysql2/commit/0d54b0ca6498c823098426038162ef10df02c818"},{"type":"WEB","url":"https://blog.slonser.info/posts/mysql2-attacker-configuration"},{"type":"PACKAGE","url":"https://github.com/sidorares/node-mysql2"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591300"}],"affected":[{"package":{"name":"mysql2","ecosystem":"npm","purl":"pkg:npm/mysql2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.9.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/04/GHSA-mqr2-w7wj-jjgr/GHSA-mqr2-w7wj-jjgr.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L"},{"type":"CVSS_V4","score":"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"}]}