CVE-2021-23368
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability CVE-2021-23368 affects the PostCSS package versions from 7.0.0 and before 8.2.10. This Regular Expression Denial of Service (ReDoS) vulnerability was discovered during source map parsing and was disclosed on April 5, 2021 (NVD, Snyk).

Technical details

The vulnerability exists in the source map parsing functionality where an unsafe regular expression pattern is used. The issue specifically occurs in the parsing of sourceMappingURL annotations. The vulnerable code used regex patterns that could lead to catastrophic backtracking, potentially causing the application to become unresponsive (GitHub Commit, GitHub Commit). The vulnerability has a CVSS score of 5.3 (medium severity) (Snyk).

Impact

When exploited, this vulnerability can cause performance degradation and interruptions in resource availability. While the attacker cannot completely deny service to legitimate users, the resources in the impacted component may become partially available or experience significant slowdowns due to excessive CPU consumption (Snyk).

Mitigation and workarounds

The recommended mitigation is to upgrade PostCSS to version 7.0.36, 8.2.10 or higher. The vulnerability has been fixed by modifying the unsafe regular expression patterns used in source map parsing (Snyk).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management