# CVE-2025-62494: Type confusion in string addition in QuickJS

- Severity: High 7.1 (CVSS:4.0, scored by Google) `CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA: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.53%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-16T15:51:50.977Z
- Modified: 2026-10-19T16:10:00.260Z
- Weaknesses: CWE-704
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: Google

## Description

A type confusion vulnerability exists in the handling of the string addition (+) operation within the QuickJS engine.

  *  The code first checks if the left-hand operand is a string.


  *  It then attempts to convert the right-hand operand to a primitive value using JS_ToPrimitiveFree. This conversion can trigger a callback (e.g., toString or valueOf).


  *  During this callback, an attacker can modify the type of the left-hand operand in memory, changing it from a string to a different type (e.g., an object or an array).


  *  The code then proceeds to call JS_ConcatStringInPlace, which still treats the modified left-hand value as a string.


This mismatch between the assumed type (string) and the actual type allows an attacker to control the data structure being processed by the concatenation logic, resulting in a type confusion condition. This can lead to out-of-bounds memory access, potentially resulting in memory corruption and arbitrary code execution in the context of the QuickJS runtime.

(As written by CVE List.)

## Affected

- JS_ConcatStringInPlace: from 2025-04-26 before 2025-09-13
- quickjs_project quickjs: before 2025-09-13

## Every score

- Google: CVSS:4.0 7.1 High `CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://issuetracker.google.com/434193023> (exploit, issue-tracking)
- <https://bellard.org/quickjs/Changelog> (release-notes)

## Sources

- CVE List: [CVE-2025-62494](https://www.cve.org/CVERecord?id=CVE-2025-62494), CVE Terms of Use, modified 2025-10-16
- NVD: [CVE-2025-62494](https://nvd.nist.gov/vuln/detail/CVE-2025-62494), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-62494 · Whole record: https://cve.day/CVE-2025-62494.json · Rebuilt by cve.day 2026-11-25T22:59:06.498Z
