grass Sass Compiler
CVE-2026-14651
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious .scss with chained @extend
-
DeliverySupply file to grass compiler locally
-
ExploitTrigger exponential selector resolution in grass_compiler::selector::extend
-
ExecutionExhaust CPU/memory in compiler process
-
ImpactDeny 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
Local attack vector and low privileges required to invoke the compiler; only availability of the compiler process is impacted at low severity.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB