{"id":"CVE-2024-21512","aliases":["CVE-2024-21512","GHSA-pmh2-wpjm-fj45"],"related":[],"kind":"vulnerability","state":"published","title":"mysql2 vulnerable to Prototype Pollution","summary":"Versions of the package mysql2 before 3.9.8 are vulnerable to Prototype Pollution due to improper user input sanitization passed to fields and tables when using nestTables.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Versions of the package mysql2 before 3.9.8 are vulnerable to Prototype Pollution due to improper user input sanitization passed to fields and tables when using nestTables.","source":"cvelist"},{"lang":"es","text":"Las versiones del paquete mysql2 anteriores a la 3.9.8 son vulnerables a la contaminación de prototipos debido a una sanitización inadecuada de las entradas del usuario pasadas a campos y tablas cuando se utilizan nestTables.","source":"nvd"}],"published":"2024-05-29T05:00:01.515Z","modified":"2026-09-10T03:49:18.750Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","score":8.2,"rating":"HIGH"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.9.8","status":"affected"}],"product":"mysql2","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"*","status":"affected"}],"product":"org.webjars.npm:mysql2","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"3.9.8","status":"affected"}],"vendor":"mysql2","product":"mysql2","cpe":"cpe:2.3:a:mysql2:mysql2:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.9.8"}],"ecosystem":"npm","package":"mysql2","purl":"pkg:npm/mysql2","source":"ghsa"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4a","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sidorares/node-mysql2/pull/2702","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bc","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21512","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/sidorares/node-mysql2","tags":["package"],"sources":["ghsa"]}],"credits":["Donggyu Kim"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-05-29T14:07:58.190Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-21512","url":"https://www.cve.org/CVERecord?id=CVE-2024-21512","licence":"CVE Terms of Use","modified":"2024-08-01T22:20:40.900Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pmh2-wpjm-fj45","url":"https://github.com/advisories/GHSA-pmh2-wpjm-fj45","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:18.750Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-21512","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21512","licence":"Public domain","modified":"2026-06-17T07:09:38.930Z"}],"updatedAt":"2026-11-25T22:58:41.042Z","epss":{"score":0.03139,"percentile":0.8825,"date":"2026-12-01T12:00:22.000Z"}}