VDB
GHSA-4rch-2fh8-94vw
GHSA-4rch-2fh8-94vw
PUBLISHED
CVSS 9.800000190734863 CRITICAL
MySQL2 for Node Arbitrary Code Injection
Record from GitHub Advisory Database · Published April 23, 2024
mysql2 is fixed in 3.9.7 (npm)
MySQL2 for Node Arbitrary Code Injection
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| mysql2 | npm | 3.9.7 |
| sqlpad | Wolfi | 7.4.1-r4 |
| sqlpad | Chainguard | 7.4.1-r4 |
Risk scores
CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| wolfi | sqlpad | 0 |
| chainguard | sqlpad | 0 |
| npm | mysql2 | 0 |
Timeline
- Apr 23, 2024 CVE Published
- Apr 29, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln GHSA-4rch-2fh8-94vw
vulnetix vdb fixes GHSA-4rch-2fh8-94vw
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/GHSA-4rch-2fh8-94vw/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/sidorares/node-mysql2 package
- https://github.com/sidorares/node-mysql2/releases/tag/v3.9.7 url
- https://nvd.nist.gov/vuln/detail/CVE-2024-21511 advisory
- https://github.com/sidorares/node-mysql2/pull/2608 url
- https://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713 url
- https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046 url