CVE-2021-3803
JavaScript vulnerability analysis and mitigation

Overview

CVE-2021-3803 is a vulnerability discovered in the nth-check NodeJS module, which is used to parse and compile nth-checks found in CSS 3's nth-child() and nth-last-of-type(). The vulnerability was identified on September 15, 2021, affecting the nth-check library's parsing functionality (CVE Mitre).

Technical details

The vulnerability stems from inefficient regular expression complexity in the nth-check library's parsing mechanism. The original implementation used a regex-based parser that could lead to excessive resource consumption. The issue was addressed by replacing the regex-based parser with a hand-rolled parser implementation (GitHub Commit).

Impact

When exploited, this vulnerability could lead to consuming a significant amount of system resources during the execution of nth-check parsing operations, potentially resulting in a denial of service condition (Red Hat).

Mitigation and workarounds

The vulnerability has been fixed in various versions across different distributions. For Debian 10 (buster), the fix was implemented in version 1.0.1-1+deb10u1. The core fix involved replacing the vulnerable regex-based parser with a more efficient hand-rolled parser implementation (Debian LTS, GitHub Commit).

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-65959HIGH8.7
  • JavaScriptJavaScript
  • open-webui
NoYesDec 04, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-65945HIGH7.5
  • JavaScriptJavaScript
  • jws
NoYesDec 04, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 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