MEDIUM GitHub

CVE-2026-61847

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

### 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

Affected Products

References

Published: 2026-10-29 · Source: GitHub · Feed updated: 2026-10-29
This medium severity vulnerability was published on 2026-10-29 via GitHub. Affected: rubygems/crass < 1.0.7.
vulnfeed aggregates 16884 vulnerabilities from NVD, CISA KEV, Ubuntu, Debian, Red Hat, Kubernetes, Exploit-DB, OSS-Security, GitHub and OpenStack — updated every 4 hours.