ModerateVulnerabilityGHSA-mqr2-w7wj-jjgrCVE-2024-21507Published 10 Apr 2024
mysql2 cache poisoning vulnerability
Affected releases · mysql2
- 3.x3.0.0 – 3.9.2Fixed in 3.9.3
- 2.x and older0.0.1 – 2.3.3No fix, no longer updated
On 3.x, the newest line:
npm install mysql2@3.9.33.x
Affected
3.0.0 – 3.9.2
37 releases
Fixed
3.9.3 – 3.24.6
66 releases, latest
2.x
Affected
2.0.0 – 2.3.3
14 releases
1.x
Affected
1.0.0 – 1.7.0
27 releases
0.x
Affected
0.0.1 – 0.15.8
74 releases
Is your project affected?
Paste your package.json, or type the range you declare for mysql2. It is read in your browser and sent nowhere.
What happens
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.