Jint is vulnerable to Uncontrolled Recursion
50
CVE Score
Medium
Uncontrolled Recursion
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.
Upgrade the Jint package to version 4.17.0 or later.
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.
2.0.0 - 4.16.4
Fixed in 4.17.0Jint is vulnerable to Uncontrolled Recursion in versions 2.0.0 - 4.16.4.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.