Skip to main content

Inefficient Regular Expression Complexity

CVE-2021-33623

Severity High
Score 7.5/10

Summary

The "trim-newlines" package before 3.0.1 and 4.x before 4.0.1 for Node.js is vulnerable to Regular Expression Denial-of-Service (ReDoS) through the ".end()" method.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-1333 - Inefficient Regular Expression Complexity

The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.

Advisory Timeline

  • Published