Vulnerabilities in pkg:gem/crass

PACKAGE
Advisory Identifier: GHSA-6wmf-3r64-vcwv
Advisory Summary

CVE-2026-61845 is a HIGH denial of service vulnerability (CWE-674: Uncontrolled Recursion) affecting Crass libraries in the RubyGems ecosystem. The issue involves large numeric exponents cause cpu and memory denial of service. Remediation is available by upgrading affected packages to version 1.0.7.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/crass

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/crass. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6wmf-3r64-vcwv CVE-2026-61845 HIGH Crass : Large numeric exponents cause CPU and memory denial of service

CVE-2026-61845 at a Glance

CVE Identifier CVE-2026-61845
GHSA Identifier GHSA-6wmf-3r64-vcwv
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-674: Uncontrolled Recursion
Affected Product Crass
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2026-61845

To remediate this vulnerability, upgrade all affected Crass dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

crass fixed: 1.0.7
Upgrade crass to 1.0.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for crass

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-61845, inspect your project dependencies for Crass:

inspect dependencies for crass

Analyze the terminal output to locate any version of Crass in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.7), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-674: Uncontrolled Recursion, where the product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. In Crass, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Crass converts CSS scientific notation number values with unbounded exponentiation before it clamps the result to `Float::MAX`. Applications that use Crass to parse attacker-controlled CSS strings can be forced to spend disproportionate CPU and memory parsing a tiny input, possibly resulting in a crash. ### Patches This is fixed in Crass 1.0.7. ### Related - https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crass/GHSA-6wmf-3r64-vcwv.yml

CVE-2026-61845 Affected Crass Versions

1 component(s)
Fixed Versions:
1.0.7
Product / Package Ecosystem Affected Versions Fixed Version
crass
RubyGems
< 1.0.7
1.0.7

References

Frequently Asked Questions

What is CVE-2026-61845?
CVE-2026-61845 is a security vulnerability in Crass involving Large numeric exponents cause CPU and memory denial of service under CWE-674: Uncontrolled Recursion.
Which Crass versions are affected?
Affected versions include releases prior to 1.0.7 across affected packages: crass.
What version fixes CVE-2026-61845?
Upgrading to 1.0.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is crass affected?
Yes, crass is affected in releases prior to 1.0.7. Upgrade your dependency to 1.0.7 or later.
What CWE is associated with CVE-2026-61845?
CVE-2026-61845 is classified under CWE-674: Uncontrolled Recursion (The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.).
How can I check RubyGems dependencies for CVE-2026-61845?
Run the dependency tree command: 'inspect dependencies for crass'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6wmf-3r64-vcwv",
  "modified" : "2026-10-20T14:32:39Z",
  "published" : "2026-10-20T14:32:39Z",
  "aliases" : [ "CVE-2026-61845" ],
  "summary" : "Crass : Large numeric exponents cause CPU and memory denial of service",
  "details" : "### Impact\n\nCrass converts CSS scientific notation number values with unbounded exponentiation before it clamps the result to `Float::MAX`. Applications that use Crass to parse attacker-controlled CSS strings can be forced to spend disproportionate CPU and memory parsing a tiny input, possibly resulting in a crash.\n\n### Patches\n\nThis is fixed in Crass 1.0.7.\n\n### Related\n\n- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crass/GHSA-6wmf-3r64-vcwv.yml",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "crass"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rgrove/crass/security/advisories/GHSA-6wmf-3r64-vcwv"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rgrove/crass"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rgrove/crass/releases/tag/v1.0.7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crass/GHSA-6wmf-3r64-vcwv.yml"
  }, {
    "type" : "WEB",
    "url" : "https://rubygems.org/gems/crass/versions/1.0.7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-674" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-20T14:32:39Z",
    "nvd_published_at" : null
  }
}