MEDIUM 6.5 npm

mysql2 cache poisoning vulnerability

GHSA-mqr2-w7wj-jjgr · CVE-2024-21507

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes