HighGHSA-pmh2-wpjm-fj45CVE-2024-21512

mysql2 vulnerable to Prototype Pollution

Published 30 May 2024 · Updated 10 Sept 2026

Affected package

Affected
<3.9.8
Fixed in
3.9.8
Update to the fixed version for your release line, for example:npm install mysql2@3.9.8

Details

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.

Is GHSA-pmh2-wpjm-fj45 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected mysql2, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.