CVE-2024-21509Sidorares Mysql2
Medium 6.5 No auth needed
Follow: this CVE · Sidorares · Sidorares Mysql2 We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 69
- Auth required
- No
- Published
- Apr 10, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1321
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
What happens
Versions of the package mysql2 before 3.9.4 are vulnerable to Prototype Poisoning due to insecure results object creation and improper user input sanitization passed through parserFn in text_parser.js and binary_parser.js.
What to do
- Apply the vendor's security update for Mysql2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | mysql2 |
< 3.9.4 |
3.9.4 |
npm install mysql2@3.9.4 |
Per OSV / GitHub Advisories (GHSA-49j4-86m8-q2jw). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| sidorares | mysql2 | < 3.9.4 |
Official sources
References
Links published by the sources. Open them with care.
- blog.slonser.info Exploit Permissions Required
- github.com Broken Link
- github.com Patch
- github.com Exploit Issue Tracking
- github.com Release Notes
- security.snyk.io Exploit Third Party Advisory