Skip to content

CVE-2024-21509 mysql2 vulnerable to Prototype Poisoning

MediumCVSS 6.5 EPSS 0.96%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
mysqljs mysql2 < 3.9.4 3.9.4 Fixed
npm mysql2(npm) < 3.9.4 3.9.4 Fixed
sidorares mysql2 < 3.9.4 3.9.4 Fixed

Affected products

ProductAffected versionsFixed in
npm mysql2(npm) < 3.9.4 3.9.4
mysqljs mysql2 < 3.9.4 3.9.4
sidorares mysql2 < 3.9.4 3.9.4

References