Vulnerability · Published Oct 30, 2026 · Assigned by GitHub_M
CVE-2026-61847Crass: A large number of adjacent CSS comments can trigger a SystemStackError
Medium 6.3
In plain English
A medium-severity security flaw in crass from rgrove. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Crass is a Ruby CSS parser that's fully compliant with the CSS Syntax Level 3 specification. Prior to 1.0.7, when the `:preserve_comments` option is not enabled, which is the default, Crass discards CSS comments by recursively consuming the next token. An attacker-provided stylesheet containing a very large number of adjacent comments can cause excessive recursion and trigger a `SystemStackError`, denying service to the parsing application. Preserving comments avoids this recursive path. This issue is fixed in version 1.0.7.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-crass | no fix listed | DEBIAN-CVE-2026-61847 |
| Debian:13 | ruby-crass | no fix listed | DEBIAN-CVE-2026-61847 |
| Debian:14 | ruby-crass | 1.0.7-1 | DEBIAN-CVE-2026-61847 |
| RubyGems | crass | 1.0.7 | GHSA-wwpr-jff3-395c |
| Ubuntu:22.04:LTS | ruby-crass | no fix listed | UBUNTU-CVE-2026-61847 |
| Ubuntu:24.04:LTS | ruby-crass | no fix listed | UBUNTU-CVE-2026-61847 |
| Ubuntu:26.04:LTS | ruby-crass | no fix listed | UBUNTU-CVE-2026-61847 |
| Ubuntu:26.10 | ruby-crass | no fix listed | UBUNTU-CVE-2026-61847 |
Affected products (as reported)
Weakness: CWE-674 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L
References
- https://github.com/rgrove/crass/security/advisories/GHSA-wwpr-jff3-395c x_refsource_CONFIRM
- https://github.com/rgrove/crass/commit/25d78cc607c54262e9d43ea1930f3ba5bb03dfb5 x_refsource_MISC
- https://github.com/rgrove/crass/releases/tag/v1.0.7 x_refsource_MISC