CVE-2026-61847

Medium

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.

SeverityMedium
CVSS6.3
Exploit probability—
ProductCrass
PublishedOct 30, 2026
First seenNov 4, 2026
Weakness typeCWE-674CWE-674

How to fix

Update
  • crass1.0.7 or later

Affected products

ProductAffected versionsFixed in
crassRubyGemsv < 1.0.71.0.7

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.