Vulnerabilities

1 via 1 paths

Dependencies

13

Source

GitHub

Commit

a78e5658

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
Status
  • 1
  • 0
  • 0

high severity
new

Uncontrolled Recursion

  • Vulnerable module: underscore
  • Introduced through: jsonpath@1.3.0

Detailed paths

  • Introduced through: redux-entity-store@just-paja/redux-entity-routines#a78e56582653c7640ff5116ae390f6c7ab1a60bc jsonpath@1.3.0 underscore@1.13.6

Overview

underscore is a JavaScript's functional programming helper library.

Affected versions of this package are vulnerable to Uncontrolled Recursion through the _.flatten() or _.isEqual() functions that are used without a depth limit. An attacker can cause the application to crash or become unresponsive by supplying deeply nested data structures as input, leading to stack exhaustion.

Workaround

This vulnerability can be mitigated by enforcing a depth limit on data structures created from untrusted input (e.g., limiting nesting to 1000 levels or fewer), or by passing a finite depth limit as the second argument to the _.flatten() function.

Remediation

Upgrade underscore to version 1.13.8 or higher.

References