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.
https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591084
https://github.com/sidorares/node-mysql2/releases/tag/v3.9.4
https://github.com/sidorares/node-mysql2/pull/2574
https://github.com/sidorares/node-mysql2/commit/4a964a3910a4b8de008696c554ab1b492e9b4691
https://blog.slonser.info/posts/mysql2-attacker-configuration/
Published: 2024-04-10
Updated: 2025-06-17
Base Score: 6.4
Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:P
Severity: Medium
Base Score: 6.5
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Severity: Medium
Base Score: 6.9
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
Severity: Medium
EPSS: 0.02698