CVE-2026-61848

Crass: Non-ASCII characters cause superlinear CPU consumption

Published Oct 30, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Crass, a Ruby CSS parser, has an inefficiency that causes superlinear parsing time when handling CSS strings that contain many non‑ASCII, multi‑byte characters. This leads to excessive CPU consumption and can trigger a denial‑of‑service condition if an attacker supplies sufficiently large, crafted CSS input. The weakness is a resource‑consumption flaw identified by CWE‑400 and CWE‑770.

Affected Systems

The Crass library for Ruby, version 1.0.6 and earlier, is vulnerable. Applications that import or parse untrusted CSS using these versions are impacted. The vendor product is rgrove:Crass.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. EPSS data is not provided, so the exploitation probability cannot be quantified. The vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is delivering large CSS payloads that include many non‑ASCII characters to the vulnerable parser, assuming the application allows arbitrary CSS input from external sources or has no size limits or rate limiting in place. The impact is a denial of service via CPU exhaustion.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Crass to version 1.0.7 or newer
  • If an upgrade is not possible, enforce a maximum size on CSS input before parsing and reject oversized requests
  • Implement validators that strip or reject non‑ASCII characters in CSS input before it reaches Crass

Generated by OpenCVE AI on October 31, 2026 at 01:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8vfg-2r28-hvhj Crass: Non-ASCII characters cause superlinear CPU consumption
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-770
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Rgrove
Rgrove crass
Vendors & Products Rgrove
Rgrove crass
Type Values Removed Values Added
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.
Title Crass: Non-ASCII characters cause superlinear CPU consumption
Weaknesses CWE-400
References
Metrics cvssV4_0

{'score': 6.3, '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'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 6, 2026, 5:31 PM
Reserved
Jul 10, 2026, 8:28 PM
Status
Deferred
Published
Oct 30, 2026, 7:18 PM
Modified
Nov 6, 2026, 6:18 PM
Severity
Moderate
Public date
Oct 30, 2026, 6:45 PM