Vulnerability library
Security checkMay 05, 2026

Underscore has unlimited recursion in _.flatten and _.isEqual, potential for DoS attack

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmunderscore

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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

Could your website be exposed too?

SmartScanner can check your website for Underscore has unlimited recursion in _.flatten and _.isEqual, potential for DoS attack and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 05, 2026