{"id":"GHSA-pmh2-wpjm-fj45","revision":"08a3b89d4b834948a8544f67dba64b15","records":[{"revision":"08a3b89d4b834948a8544f67dba64b15","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-pmh2-wpjm-fj45","aliases":["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.","state":0,"publishedAt":"2024-05-30T18:34:32+00:00","modifiedAt":"2026-09-10T03:49:18.7507174+00:00","affected":[{"ecosystem":"npm","name":"mysql2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.9.8"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2024-21512","https://github.com/sidorares/node-mysql2/pull/2702","https://github.com/sidorares/node-mysql2/commit/efe3db527a2c94a63c2d14045baba8dfefe922bc","https://gist.github.com/domdomi3/e9f0f9b9b1ed6bfbbc0bea87c5ca1e4a","https://github.com/sidorares/node-mysql2","https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-7176010","https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6861580"],"sourceUrl":"https://github.com/advisories/GHSA-pmh2-wpjm-fj45","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-pmh2-wpjm-fj45","identifiers":["GHSA-pmh2-wpjm-fj45","CVE-2024-21512"]},"retained":false,"historicalAffected":[]}],"coverage":[]}