Skip to main content
← All vulnerabilities
CVE-2026-61847GHSA-WWPR-JFF3-395CEUVD-2026-114323

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.0.7
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  4. Record last updated

Affected versions

  • rgrove crass

    fixed in 1.0.7

  • crassRubyGems

    fixed in 1.0.7

References 3

GitHub · rgrove/crass