The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-33587

CVE-2021-33587: Css-what Performance Vulnerability

CVE-2021-33587 is a performance vulnerability in the Css-what package for Node.js where attribute parsing lacks linear time complexity. This article covers technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-33587 Overview

The css-what package versions 4.0.0 through 5.0.0 for Node.js contains an algorithmic complexity vulnerability in its CSS selector parsing functionality. The package does not ensure that attribute parsing maintains Linear Time Complexity relative to the size of the input, which can be exploited by an attacker to cause excessive CPU consumption and denial of service conditions.

Critical Impact

Applications using vulnerable versions of css-what can be rendered unresponsive through specially crafted CSS selector inputs, potentially causing service outages for web applications and Node.js services that depend on this widely-used npm package.

Affected Products

  • css-what package versions 4.0.0 through 5.0.0 for Node.js
  • NetApp E-Series Performance Analyzer

Discovery Timeline

  • 2021-05-28 - CVE-2021-33587 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-33587

Vulnerability Analysis

This vulnerability is classified as an Algorithmic Complexity Attack, a form of denial of service where computational resources are exhausted through inputs that trigger worst-case algorithmic performance. The css-what package is a CSS selector parser that transforms CSS selector strings into Abstract Syntax Trees (ASTs) for further processing by other libraries in the JavaScript ecosystem.

The core issue lies in the attribute parsing logic, which fails to maintain linear time complexity relative to input size. When processing certain malformed or specially crafted CSS selector attribute strings, the parser can enter computational patterns that scale superlinearly (potentially quadratic or exponential) with input length. This allows attackers to submit relatively small malicious inputs that consume disproportionate CPU cycles.

The vulnerability is exploitable over the network without requiring authentication or user interaction, making it particularly dangerous for web-facing applications. While the attack does not compromise data confidentiality or integrity, it can completely disrupt service availability.

Root Cause

The root cause of CVE-2021-33587 is improper algorithmic design in the attribute parsing component of css-what. The parsing logic does not implement appropriate bounds checking or optimization to ensure that processing time scales linearly with input size. This violates security best practices for parser design, where untrusted input should never be able to trigger disproportionate resource consumption.

The vulnerability specifically manifests in how the parser handles attribute selectors within CSS strings. When encountering certain character sequences or patterns in attribute values, the algorithm enters inefficient execution paths that dramatically increase processing time.

Attack Vector

The attack vector for this vulnerability is network-based. An attacker can exploit the vulnerability by submitting malicious CSS selector strings to any application endpoint that processes user-supplied CSS selectors using the vulnerable css-what package. Common attack scenarios include:

The attacker crafts CSS selector strings with specific attribute patterns designed to trigger worst-case parsing performance. These malicious selectors are then submitted to web applications through form fields, API endpoints, or any input mechanism that feeds into css-what parsing functions. Even a single malicious request can monopolize server CPU resources, and sustained attacks can render the application completely unresponsive.

Applications that use css-what as a transitive dependency through higher-level CSS processing libraries (such as css-select or cheerio) are also affected, expanding the potential attack surface significantly.

Detection Methods for CVE-2021-33587

Indicators of Compromise

  • Abnormal CPU utilization spikes in Node.js processes handling CSS parsing operations
  • Increased response times or timeouts on endpoints that process CSS selectors
  • Memory consumption anomalies in application servers running css-what-dependent code
  • Error logs showing parsing operations that fail to complete within expected timeframes

Detection Strategies

  • Implement application performance monitoring (APM) to detect unusual latency in CSS parsing operations
  • Deploy dependency scanning tools to identify vulnerable css-what versions across your codebase and container images
  • Configure resource monitoring alerts for Node.js processes with thresholds for CPU and memory consumption
  • Review package-lock.json and yarn.lock files to identify both direct and transitive dependencies on css-what

Monitoring Recommendations

  • Set up automated dependency auditing using npm audit or similar tools in CI/CD pipelines
  • Monitor application logs for patterns indicating parsing operations taking longer than expected
  • Implement rate limiting and request timeout policies on endpoints that accept CSS selector input
  • Deploy SentinelOne Singularity Platform to detect anomalous process behavior and resource exhaustion attacks

How to Mitigate CVE-2021-33587

Immediate Actions Required

  • Upgrade css-what to version 5.0.1 or later, which contains the fix for this vulnerability
  • Run npm audit or yarn audit to identify all instances of vulnerable css-what versions in your dependency tree
  • Review transitive dependencies by checking if higher-level packages (css-select, cheerio, etc.) have updated their css-what dependency
  • Implement input validation and size limits on any user-supplied CSS selector strings

Patch Information

The vulnerability has been patched in css-what version 5.0.1. The fix ensures that attribute parsing maintains linear time complexity regardless of input characteristics. Organizations should update to this version or later as soon as possible.

For detailed patch information, see the GitHub Release v5.0.1. Additional advisories are available from NetApp Security Advisory NTAP-20210706-0007 and Debian LTS Announce March 2023.

Workarounds

  • Implement strict input validation to reject abnormally long or complex CSS selector strings before they reach the parser
  • Apply request timeouts on endpoints that process CSS selectors to prevent resource exhaustion
  • Use rate limiting to restrict the number of CSS parsing requests from individual clients
  • Consider sandboxing CSS parsing operations in separate worker processes with resource limits
bash
# Update css-what to patched version
npm update css-what@^5.0.1

# Alternatively, force resolution in package.json
# Add to package.json resolutions (for yarn) or overrides (for npm):
# "resolutions": { "css-what": "^5.0.1" }

# Audit dependencies for vulnerable versions
npm audit --production

# Check specific package version installed
npm list css-what

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechCss What

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.23%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Debian LTS Announce March 2023

  • NetApp Security Advisory NTAP-20210706-0007
  • Vendor Resources
  • GitHub Release v5.0.1
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English