Jint is vulnerable to Denial of Service
59
Medium Risk
Jint's custom regular expression engine enforces the configured match timeout with a thread-pool timer created via CancellationTokenSource. When the .NET thread pool is saturated the timer callback is starved and the cancellation token is not signaled promptly, so a catastrophic-backtracking pattern keeps backtracking well past the configured RegexTimeout. An application that runs untrusted scripts and relies on this timeout to bound regex execution can be driven to sustained full-CPU usage, defeating the sandbox's denial-of-service protection. The fix enforces the timeout with an inline monotonic deadline checked at the interpreter's interrupt checkpoints so the abort fires regardless of thread-pool pressure.
You are affected if you are using a version that falls within the vulnerable range and execute untrusted scripts whose regular expressions are handled by the custom regex engine.
Jint is vulnerable to Denial of Service in versions 3.0.0 - 4.12.0.
Upgrade the Jint library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant