Summary A rogue MySQL server (or MITM) can force mysql2 to send credentials in plaintext by requesting an auth switch to mysql_clear_password. The driver complies without verifying that TLS is active. Details mysql_clear_password is registered as a default standard plugin in lib/...
Product
npm mysql2 vulnerabilities
7 published CVES affecting npm mysql2, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 7
- Critical
- 2
- High
- 2
- Medium
- 3
- Low
- 0
- Unscored
- 0
- CISA KEV
- 0
Latest npm mysql2 CVEs
Newest publication first
-
HighCVSS 8.2
-
MediumCVSS 5.9
Vulnerability Details File: lib/compressed_protocol.js Line: 43 (zlib.inflate(body, (err, data) => { ... }) inside handleCompressedPacket) Root Cause When a connection is created with compress: true (and the server advertises CLIENT_COMPRESS), every incoming packet is unwrapped b...
-
HighCVSS 8.2 EPSS 3.1%
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.
-
CriticalCVSS 9.8 EPSS 1.0%
Versions of the package mysql2 before 3.9.7 are vulnerable to Arbitrary Code Injection due to improper sanitization of the timezone parameter in the readCodeFor function by calling a native MySQL Server date/time function.
-
CriticalCVSS 9.8 EPSS 2.6%
Versions of the package mysql2 before 3.9.4 are vulnerable to Remote Code Execution (RCE) via the readCodeFor function due to improper validation of the supportBigNumbers and bigNumberStrings values.
-
MediumCVSS 5.3 EPSS 0.74%
Versions of the package mysql2 before 3.9.3 are vulnerable to Improper Input Validation through the keyFromFields function, resulting in cache poisoning. An attacker can inject a colon (:) character within a value of the attacker-crafted key.
-
MediumCVSS 6.5 EPSS 0.96%
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.
Sources: CVE.org, NVD, CISA KEV, FIRST EPSS, OSV and public exploit-reference metadata. Product matching comes from the published CVE records. A proof-of-concept means public code exists; it is not evidence of exploitation.