ADVISORIES

GitHub Advisory Database

GHSA-4rch-2fh8-94vw

MySQL2 for Node Arbitrary Code Injection

Critical CVE-2024-21511

Details

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.

Affected packages

EcosystemPackageAffected versions
npmmysql2
All versions before 3.9.7 (fixed in 3.9.7)

References