Vulnerability GHSA-wwpr-jff3-395c

Medium Risk
MEDIUM RISK
CVSS Score: 6.0
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
1 day ago
October 29, 2026 at 04:35 PM UTC
Crass: A large number of adjacent CSS comments can trigger a SystemStackError
0.0.1 - 1.0.6
0.0.1 - 1.0.6

Summary

Crass: A large number of adjacent CSS comments can trigger a SystemStackError

Details

Impact

When the :preserve_comments option is not enabled (which is the default behavior), Crass discards CSS comments by recursively consuming the next token. An attacker who provides a stylesheet containing a very large number of adjacent comments can cause excessive recursion and trigger a SystemStackError.

Patches

This is fixed in Crass 1.0.7, which no longer recurses when discarding comments.

Workarounds

Set the :preserve_comments option to true if this is acceptable to your use case (recursion doesn't occur when comments are preserved).

Impacted packages

Timeline

Published
1 day ago
October 29, 2026 at 04:35 PM UTC
Fixed (1.0.7)
4 months ago
June 25, 2026 at 05:09 PM UTC
Last Modified
1 day ago
October 29, 2026 at 04:45 PM UTC