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

Published Oct 16, 2025
·
Updated

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 JSToPrimitiveFree. 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 JSConcatStringInPlace, 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.

Affected Software

2 affected components
Falling Tree QuickJS
Quickjs Project Quickjs<2025-09-13

Event History

Oct 16, 2025
CVE Published
via MITRE·03:51 PM
Data Sourced
via MITRE·03:51 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-62494?

CVE-2025-62494 is classified as a high severity vulnerability due to the potential for exploitation in the QuickJS engine.

2

How do I fix CVE-2025-62494?

To fix CVE-2025-62494, update to the latest version of Falling Tree QuickJS which addresses this type confusion issue.

3

Who is affected by CVE-2025-62494?

CVE-2025-62494 affects users of Falling Tree QuickJS, specifically versions prior to the patch that resolves this vulnerability.

4

What is the nature of the vulnerability in CVE-2025-62494?

CVE-2025-62494 is a type confusion vulnerability that occurs during the string addition operation in the QuickJS engine.

5

Is CVE-2025-62494 exploitable?

Yes, CVE-2025-62494 can be exploited to execute arbitrary code if an attacker can manipulate the inputs to the vulnerable code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203