CVE-2025-46687
Description
quickjs-ng through 0.9.0 has a missing length check in JS_ReadString for a string, leading to a heap-based buffer overflow. QuickJS before 2025-04-26 is also affected.
Severity
MEDIUM
CVSS v3
5.6
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L · source cna
Exploit chance (EPSS)
0.304%
chance of exploitation in the next 30 days
higher than 23.5% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-770: Allocation of Resources Without Limits or Throttling
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2025-04-28 |
Timeline
- 2025-04-27Published by the CNA00:00 UTC
- 2025-04-28CISA SSVC decision recorded1 day after publication
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| bellard quickjs | before 2025-04-26fixed in 2025-04-26 | 2025-04-26 |
| quickjs-ng quickjs | through 0.9.0no fix listed | not listed |
| quickjs_project quickjs | before 2025-04-26fixed in 2025-04-26 | 2025-04-26 |
References
- https://github.com/bellard/quickjs/commit/1eb05e44fad89daafa8ee3eb74b8520b4a37ec9a
- https://github.com/quickjs-ng/quickjs/commit/28fa43d3ddff2c1ba91b6e3a788b2d7ba82d1465
- https://github.com/quickjs-ng/quickjs/pull/1020
- https://github.com/bellard/quickjs/issues/399
- https://github.com/quickjs-ng/quickjs/issues/1018
- https://bellard.org/quickjs/Changelog
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2025-46687'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2025-46687'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2025-46687'curl 'https://api.contrastcyber.com/cve_products/CVE-2025-46687'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).