# CVE-2025-46687: quickjs-ng through 0.9.0 has a missing length check in JSReadString for a string, leading to a heap-based buffer overflow.

- Severity: Medium 5.6 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-04-27T00:00:00.000Z
- Modified: 2026-06-17T09:26:48.947Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- QuickJS Project QuickJS: before 2025-04-26
- bellard quickjs: before 2025-04-26
- quickjs-ng quickjs: up to 0.9.0

## Every score

- mitre: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/quickjs-ng/quickjs/issues/1018> (exploit, issue-tracking, vendor-advisory)
- <https://github.com/bellard/quickjs/issues/399> (exploit, issue-tracking, vendor-advisory)
- <https://github.com/quickjs-ng/quickjs/pull/1020> (issue-tracking, patch)
- <https://github.com/bellard/quickjs/commit/1eb05e44fad89daafa8ee3eb74b8520b4a37ec9a> (patch)
- <https://github.com/quickjs-ng/quickjs/commit/28fa43d3ddff2c1ba91b6e3a788b2d7ba82d1465> (patch)
- <https://bellard.org/quickjs/Changelog> (release-notes)

## Sources

- CVE List: [CVE-2025-46687](https://www.cve.org/CVERecord?id=CVE-2025-46687), CVE Terms of Use, modified 2025-04-28
- NVD: [CVE-2025-46687](https://nvd.nist.gov/vuln/detail/CVE-2025-46687), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-46687 · Whole record: https://cve.day/CVE-2025-46687.json · Rebuilt by cve.day 2026-11-25T22:58:56.966Z
