{"id":"GHSA-49j4-86m8-q2jw","revision":"dccce2e8501b4de2b721f92f7d52de1e","records":[{"revision":"dccce2e8501b4de2b721f92f7d52de1e","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-49j4-86m8-q2jw","aliases":["CVE-2024-21509"],"title":"mysql2 vulnerable to Prototype Poisoning","description":"Versions of the package mysql2 before 3.9.4 are vulnerable to Prototype Poisoning due to insecure results object creation and improper user input sanitization passed through `parserFn` in `text_parser.js` and `binary_parser.js`.","state":0,"publishedAt":"2024-04-10T15:30:39+00:00","modifiedAt":"2026-09-10T03:50:11.1888309+00:00","affected":[{"ecosystem":"npm","name":"mysql2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.9.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":null,"severity":null},{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/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-21509","https://github.com/sidorares/node-mysql2/pull/2574","https://github.com/sidorares/node-mysql2/commit/4a964a3910a4b8de008696c554ab1b492e9b4691","https://blog.slonser.info/posts/mysql2-attacker-configuration","https://github.com/sidorares/node-mysql2","https://github.com/sidorares/node-mysql2/blob/fd3d117da82cc5c5fa5a3701d7b33ca77691bc61/lib/parsers/text_parser.js%23L134","https://github.com/sidorares/node-mysql2/releases/tag/v3.9.4","https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591084"],"sourceUrl":"https://github.com/advisories/GHSA-49j4-86m8-q2jw","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-49j4-86m8-q2jw","identifiers":["GHSA-49j4-86m8-q2jw","CVE-2024-21509"]},"retained":false,"historicalAffected":[]}],"coverage":[]}