Skip to main content
← All vulnerabilities
CVE-2026-61848GHSA-8VFG-2R28-HVHJ

Crass: Non-ASCII characters cause superlinear CPU consumption

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.0.7
None on Exploit-DB, Metasploit or GitHub

Summary

Crass, a Ruby library for parsing CSS, is affected by this flaw. Parsing CSS input containing many non-ASCII (multi-byte) characters can take disproportionately long and consume excessive CPU, which could let an attacker cause a denial of service.

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 Crass parses input containing `non-ASCII characters`, inefficiencies in tracking the positions of `multi-byte characters` result in superlinear parsing time. An attacker-controlled CSS input consisting of many `non-ASCII characters` can therefore cause excessive CPU consumption and potentially denial of service. This issue is fixed in version 1.0.7.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • rgrove crass

    fixed in 1.0.7

  • crassRubyGems

    fixed in 1.0.7

References 3

GitHub · rgrove/crass