npm package report

Is mysql2 safe?

7 known vulnerabilities, worst severity CRITICAL.

// reach

24 direct dependencies

3 carry known advisories, worst CRITICAL

162 packages depend on it

an advisory here reaches each of them

Create a free accountfor every dependency path, dependent and what to upgrade
// ai model usage

Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


cvss
9.8
critical

CVSS v3.1 base score out of 10

epss
1.0%
medium

chance of exploitation in 30 days, 64th percentile of all CVEs

xyz score
5.3
medium

CyberXYZ composite out of 10

fig. 01 — GHSA-4rch-2fh8-94vw, the advisory selected below

// 7 advisories

GHSA-4rch-2fh8-94vw

CRITICALGitHub ratingCVE-2024-21511

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.

// cvss v3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Checked 2026-11-06 at 21:35 UTC. The most recent advisory here was published 2026-09-01. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.