Intel

AIKIDO-2026-708106

Jint is vulnerable to Uncontrolled Recursion

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 19, 2026
October 19, 2026

50

CVE Score

Medium

Uncontrolled Recursion

Are you affected? Scan for Free

TL;DR

An application that passes attacker-controlled JavaScript to Jint can be terminated when the script makes eval() recursively re-enter evaluation, makes a custom Symbol.hasInstance recurse through instanceof, or triggers recursive error propagation across nested ShadowRealm wrappers. These paths can exhaust the native .NET stack and terminate the hosting process; the attacker must be able to supply code the application executes, and the interpreter stack probes are conditional on StackOverflowGuard (direct eval() is also bounded by MaxExecutionStackCount). In the fix, Jint adds stack-headroom checks before eval and custom @@hasInstance calls, counts otherwise-unframed direct evals under MaxExecutionStackCount, and defers ShadowRealm error rethrows until the original catch has unwound.

How do I fix this?

Upgrade the Jint package to version 4.17.0 or later.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you execute untrusted or recursive JavaScript source through the Jint engine's eval, instanceof, or ShadowRealm features without the StackOverflowGuard constraint enabled.

Package

Versions

2.0.0 - 4.16.4

Fixed in 4.17.0

Background info

Jint is vulnerable to Uncontrolled Recursion in versions 2.0.0 - 4.16.4.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea