Skip to main content

grass Sass Compiler CVE-2026-14651

LOW
Improper Resource Shutdown or Release (CWE-404)
2026-07-04 VulDB
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious .scss with chained @extend
  2. Delivery
    Supply file to grass compiler locally
  3. Exploit
    Trigger exponential selector resolution in grass_compiler::selector::extend
  4. Execution
    Exhaust CPU/memory in compiler process
  5. Impact
    Deny service to build pipeline

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource release
Exploitation Conditions

Exploitation requires local access to a system where the grass Sass compiler (v0.13.4 or earlier) is installed and the ability to supply a crafted .scss or .sass input file to the compiler (PR:L). The triggering condition is use of the @extend directive in Sass input processed by the grass_compiler::selector::extend function. Exploitation is limited to denial of service of the compiler process itself - no system-level access, code execution, or data exposure is possible. Exploitation is further limited to compile-time only (developer workstations, build servers, CI pipelines); deployed web applications are not directly affected. The attack cannot be performed remotely and does not affect end-user systems unless grass is exposed as a service that compiles user-supplied input.

Impact

The real-world risk of this vulnerability is low to negligible. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N) scores 4.8 (Medium), but this overstates practical impact. The attack vector is local (AV:L), requires low privileges (PR:L), and impacts only availability at a low level (VA:L) with zero confidentiality or integrity consequences. No CISA KEV listing exists, and EPSS data is not provided - but given the narrow attack surface (local developer toolchain), widespread exploitation is highly implausible. The most significant risk signal is the publicly available proof-of-concept on GitHub (issue #117). The project maintainer has explicitly disputed the framing, stating that exponential compile-time behavior is an accepted property of Sass compilers, not a defect - suggesting no patch is forthcoming. There is no scope change (SC/SI/SA all N), meaning exploitation cannot pivot to affect other systems. This is a low-priority, low-real-risk finding.

Exploit ScenarioDerived

A developer or automated system feeds a maliciously crafted Sass stylesheet - containing deeply nested or chained @extend selectors - to the grass compiler. The exponential complexity of the selector extension algorithm causes the compiler process to consume excessive CPU or memory, hanging the build pipeline indefinitely or crashing the process. A public proof-of-concept demonstrating this behavior exists in GitHub issue #117 of the grass repository.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 04, 2026

Denial-of-service in the grass Sass compiler (up to v0.13.4) allows a local attacker with low privileges to trigger exponential resource consumption via a crafted stylesheet using the CSS @extend directive. The affected functions are grass_compiler::selector::extend and grass_compiler::evaluate::visitor, where the @extend algorithm's inherently exponential complexity can be exploited with a maliciously constructed input to hang or crash the compiler process. A public exploit has been disclosed; however, the project maintainer explicitly contests the severity, noting that DoS conditions are an accepted and expected limitation of Sass compilers by design.

RemediationAI

No vendor-released patch has been identified at time of analysis, and the project maintainer has explicitly stated this is not considered a vulnerability requiring remediation. If grass is used in automated build pipelines or CI/CD environments that process untrusted Sass input, the most effective compensating control is to restrict input sources to trusted internal stylesheets only - do not compile externally sourced or user-supplied .scss/.sass files with grass. Additionally, consider imposing a compilation timeout at the process level (e.g., via a wrapper script with a timeout command) to limit the impact of any runaway compilation - note this does not prevent the DoS but bounds its duration. If the compiler is invoked in a shared environment, sandboxing (e.g., via cgroups, Docker resource limits, or ulimit) can contain CPU/memory consumption. Switching to an alternative Sass compiler (e.g., dart-sass or LibSass) for production pipelines processing untrusted input is the most robust mitigation. See https://github.com/connorskees/grass/issues/117 for maintainer commentary.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Grass is an open-source Sass/SCSS compiler written in Rust, maintained by connorskees (CPE: cpe:2.3:a:connorskees:grass:*:*:*:*:*:*:*:*). The vulnerability is rooted in the algorithmic complexity of the CSS @extend selector resolution logic. CWE-404 (Improper Resource Shutdown or Release) is assigned, though the root cause is more precisely an unbounded algorithmic complexity issue - the @extend algorithm is, by the maintainer's own admission, definitionally exponential in its worst-case behavior. This means a specially crafted @extend chain in a Sass input file can cause the compiler to consume excessive CPU or memory, resulting in a denial of service of the compilation process. This is a compile-time vulnerability, not a runtime one - it affects developer tooling or build pipelines that invoke the grass compiler, not deployed web applications.

Know when Grass gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 1.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 3.3 LOW

Local attack vector and low privileges required to invoke the compiler; only availability of the compiler process is impacted at low severity.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
Jul 04, 2026 - 21:22 NVD
MEDIUM LOW
CVSS changed
Jul 04, 2026 - 21:22 NVD
4.8 (MEDIUM) 1.9 (LOW)

DescriptionCVE.org

A vulnerability has been found in connorskees grass up to 0.13.4. The impacted element is the function grass_compiler::selector::extend/grass_compiler::evaluate::visitor. The manipulation leads to denial of service. The attack must be carried out locally. The exploit has been disclosed to the public and may be used. The project maintainer explains: "DoS vulnerabilities are generally fine in Sass compilers -- they are trivially possible with recursive functions, infinite loops, nested mixins, etc. The description here is wrong. Compile time is not expected to be linear relative to the input, and the @extend algorithm is definitionally exponential."

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Rare
niche Rust Sass compiler, minimal production deployment footprint
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

cpe:2.3:a:connorskees:grass:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy