{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-21512","id":"CVE-2024-21512","title":"mysql2 vulnerable to Prototype Pollution","description":"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.","descriptionLong":"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.","published":"2024-05-29T05:00:01.515Z","updated":"2026-10-28T02:30:38.329614852Z","reserved":"2023-12-22T12:33:20.120Z","status":"Deferred","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P","rating":"high","source":"snyk"},"metrics":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P","rating":"high","source":"snyk"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","rating":"high","source":"snyk.io"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P","rating":"high","source":"OSV"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","rating":"high","source":"GitHub"}],"rating":"high","products":["mysql2","org.webjars.npm:mysql2"],"affectedProducts":[{"vendor":"n/a","product":"mysql2","defaultStatus":null,"versions":[{"version":"0","lessThan":"3.9.8","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"n/a","product":"org.webjars.npm:mysql2","defaultStatus":null,"versions":[{"version":"0","lessThan":"*","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"mysql2","purl":"pkg:npm/mysql2","ranges":["<3.9.8"],"fixed":["3.9.8"],"advisory":"GHSA-pmh2-wpjm-fj45"}],"cwes":["CWE-1321"],"aliases":["GHSA-pmh2-wpjm-fj45"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580","tags":["x_transferred","web"]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010","tags":["x_transferred","web"]},{"url":"https://gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4a","tags":["x_transferred","web"]},{"url":"https://github.com/sidorares/node-mysql2/pull/2702","tags":["x_transferred","fix","web"]},{"url":"https://github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bc","tags":["x_transferred","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21512.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21512","tags":["advisory"]},{"url":"https://github.com/sidorares/node-mysql2","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.03139,"epssPercentile":0.88179,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-21512","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21512","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-21512","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-pmh2-wpjm-fj45","ok":true,"note":"GHSA-pmh2-wpjm-fj45"},{"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-21512","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}