VDB
GHSA-49j4-86m8-q2jw
GHSA-49j4-86m8-q2jw
PUBLISHED
CVSS 6.5 MEDIUM
mysql2 vulnerable to Prototype Poisoning
Record from GitHub Advisory Database · Published April 10, 2024
mysql2 is fixed in 3.9.4 (npm)
mysql2 vulnerable to Prototype Poisoning
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.4 |
| sqlpad | Chainguard | 7.4.1-r4 |
| sqlpad | Wolfi | 7.4.1-r4 |
Risk scores
CVSS 3.1
6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Affected products
| Vendor | Product | Versions |
|---|---|---|
| npm | mysql2 | 0 |
| chainguard | sqlpad | 0 |
| wolfi | sqlpad | 0 |
Timeline
- Apr 10, 2024 CVE Published
- Mar 30, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln GHSA-49j4-86m8-q2jw
vulnetix vdb fixes GHSA-49j4-86m8-q2jw
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-49j4-86m8-q2jw/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://blog.slonser.info/posts/mysql2-attacker-configuration url
- https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6591084 url
- GitHub Advisory GHSA-49j4-86m8-q2jw vendor-advisory
- https://github.com/sidorares/node-mysql2/releases/tag/v3.9.4 url
- https://github.com/sidorares/node-mysql2/commit/4a964a3910a4b8de008696c554ab1b492e9b4691 url
- https://github.com/sidorares/node-mysql2/blob/fd3d117da82cc5c5fa5a3701d7b33ca77691bc61/lib/parsers/text_parser.js%23L134 url
- https://github.com/sidorares/node-mysql2 package
- https://nvd.nist.gov/vuln/detail/CVE-2024-21509 advisory
- https://github.com/sidorares/node-mysql2/pull/2574 url