VDB

CVE-2021-23382

CVE-2021-23382 PUBLISHED CVSS 5.3 MEDIUM

Regular Expression Denial of Service (ReDoS)

Reported by snyk · Published April 26, 2021

postcss is fixed in 8.2.13 and 7.0.36 (npm)

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=(.*).

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
postcssnpm8.2.13, 7.0.36
postcsspostcss8.2.13, 7.0.36
postcssn/a8.2.13

Risk scores

CVSS 3.1
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected products

VendorProductVersions
n/apostcssunspecified
n/apostcss*
postcsspostcss
npmpostcss0, 8.0.0

Timeline

  • Apr 26, 2021 CVE Published
  • Apr 27, 2021 EPSS Score (30 in total, the first dated here)
  • Jan 14, 2025 CVE Updated
  • Mar 10, 2026 Security Advisory (3 in total, the first dated here)
  • Jul 23, 2026 Distribution Patch
  • Aug 25, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-23382
vulnetix vdb fixes CVE-2021-23382

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-23382/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›