Advisory

GHSA-mqr2-w7wj-jjgr

Also known as: CVE-2024-21507

Summary

mysql2 cache poisoning vulnerability

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-04-10 15:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

mysql2

npm · All systems

Affected

  • introduced 0, fixed 3.9.3 (semver)

Fixed versions

3.9.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences