Inefficient Regular Expression Complexity Affecting node-postcss package, versions <8.2.1+~cs5.3.23-7


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
2.56% (85th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-NODEPOSTCSS-18353536
  • published28 Jul 2026
  • disclosed26 Apr 2021

Introduced: 26 Apr 2021

CVE-2021-23382  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Echo:latest node-postcss to version 8.2.1+~cs5.3.23-7 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-postcss package and not the node-postcss package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

The package postcss before 8.2.13 are vulnerable to Regular Expression Denial of Service (ReDoS) via getAnnotationURL() and loadAnnotation() in lib/previous-map.js. The vulnerable regexes are caused mainly by the sub-pattern /*\s* sourceMappingURL=(.*).

CVSS Base Scores

version 3.1