Underscore has unlimited recursion in _.flatten and _.isEqual, potential for DoS attack
- Severity:
- High
Description
In simple words, some programs that use _.flatten or _.isEqual could be made to crash. Someone who wants to do harm may be able to do this on purpose. This can only be done if the program has special properties. It only works in Underscore versions up to 1.13.7. A more detailed explanation follows.
In affected versions of Underscore, the _.flatten and _.isEqual functions use recursion without a depth limit.
Recommendation
Update the underscore package to the latest compatible version. Followings are version details:
- Affected version(s): <= 1.13.7
- Patched version(s): 1.13.8
References
Related Issues
- CryptPad has a Sanitizer Bypass in Diffmarked.js that Allows Arbitrary HTML Injection and Potential XSS - CVE-2026-26028
- fast-xml-parser has RangeError DoS Numeric Entities Bug - CVE-2026-25128
- Qwik City has array method pollution in FormData processing allows type confusion and DoS - CVE-2026-32701
- xmldom: Uncontrolled recursion in XML serialization leads to DoS - xmldom - CVE-2026-41673
You might also like:
- Tags:
- npm
- underscore
Anything's wrong? Let us know Last updated on May 05, 2026


