{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-21509","published":"2024-04-10T05:15:48.547000Z","last_modified":"2026-06-17T07:09:38.567000Z","status":"Analyzed","cvss":{"version":"3.1","score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","source":"report@snyk.io","primary":false},"auth":false,"cwes":["CWE-1321"],"cpes":[{"criteria":"cpe:2.3:a:sidorares:mysql2:*:*:*:*:*:*:*:*","part":"a","vendor":"sidorares","product":"mysql2","version_end_excluding":"3.9.4"}],"cpes_truncated":false,"vendors":["sidorares"],"products":["sidorares/mysql2"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial"},"epss":{"score":0.01243,"percentile":0.69253,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-49j4-86m8-q2jw","ecosystem":"npm","name":"mysql2","purl":"pkg:npm/mysql2","ranges":[{"introduced":"0","fixed":"3.9.4"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":54,"links":{"html_es":"/es/cve/CVE-2024-21509/","html_en":"/en/cve/CVE-2024-21509/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-21509","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-21509"},"untrusted":{"vendor_name":"Sidorares","product_name":"Mysql2","desc_en":"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.","affected":[{"untrusted_vendor":"mysqljs","untrusted_product":"mysql2","versions":[]}],"references":[{"url":"https://blog.slonser.info/posts/mysql2-attacker-configuration/","tags":["Exploit","Permissions Required"]},{"url":"https://github.com/sidorares/node-mysql2/blob/fd3d117da82cc5c5fa5a3701d7b33ca77691bc61/lib/parsers/text_parser.js%23L134","tags":["Broken Link"]},{"url":"https://github.com/sidorares/node-mysql2/commit/4a964a3910a4b8de008696c554ab1b492e9b4691","tags":["Patch"]},{"url":"https://github.com/sidorares/node-mysql2/pull/2574","tags":["Exploit","Issue Tracking"]},{"url":"https://github.com/sidorares/node-mysql2/releases/tag/v3.9.4","tags":["Release Notes"]},{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591084","tags":["Exploit","Third Party Advisory"]}]}}