{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-21509","id":"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.","descriptionLong":"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.","published":"2024-04-10T05:00:00.795Z","updated":"2026-10-28T02:30:41.863943629Z","reserved":"2023-12-22T12:33:20.119Z","status":"Analyzed","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L/E:P","rating":"medium","source":"snyk"},"metrics":[{"version":"4.0","score":null,"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","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L/E:P","rating":"medium","source":"snyk"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","rating":"medium","source":"snyk.io"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L/E:P","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["mysql2"],"affectedProducts":[{"vendor":"n/a","product":"mysql2","defaultStatus":null,"versions":[{"version":"0","lessThan":"3.9.4","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"mysql2","purl":"pkg:npm/mysql2","ranges":["<3.9.4"],"fixed":["3.9.4"],"advisory":"GHSA-49j4-86m8-q2jw"}],"cwes":["CWE-1321"],"aliases":["GHSA-49j4-86m8-q2jw"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591084","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://blog.slonser.info/posts/mysql2-attacker-configuration/","tags":["x_transferred","Exploit","Permissions Required","article"]},{"url":"https://github.com/sidorares/node-mysql2/blob/fd3d117da82cc5c5fa5a3701d7b33ca77691bc61/lib/parsers/text_parser.js%23L134","tags":["x_transferred","Broken Link","web"]},{"url":"https://github.com/sidorares/node-mysql2/commit/4a964a3910a4b8de008696c554ab1b492e9b4691","tags":["x_transferred","Patch","fix","web"]},{"url":"https://github.com/sidorares/node-mysql2/pull/2574","tags":["x_transferred","Exploit","Issue Tracking","fix","web"]},{"url":"https://github.com/sidorares/node-mysql2/releases/tag/v3.9.4","tags":["x_transferred","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21509.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21509","tags":["advisory"]},{"url":"https://blog.slonser.info/posts/mysql2-attacker-configuration","tags":["web"]},{"url":"https://github.com/sidorares/node-mysql2","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.00955,"epssPercentile":0.62238,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-21509","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21509","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-21509","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-49j4-86m8-q2jw","ok":true,"note":"GHSA-49j4-86m8-q2jw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-21509","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}