GHSA-6jxj-px6v-747w

Suggest an improvement
Source
https://github.com/advisories/GHSA-6jxj-px6v-747w
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-6jxj-px6v-747w/GHSA-6jxj-px6v-747w.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6jxj-px6v-747w
Aliases
  • CVE-2026-61846
Published
2026-10-29T16:35:16Z
Modified
2026-10-29T16:45:05Z
Severity
  • 6.3 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Crass: Deeply nested CSS blocks and functions can trigger a SystemStackError or excessive memory usage
Details

Impact

Crass recursively parses CSS simple blocks and functions without a depth guard. An attacker-controlled value containing many deeply nested blocks can recurse until Ruby raises SystemStackError: stack level too deep, or can cause excessive memory usage.

Patches

This is fixed in Crass 1.0.7, which adds a configurable depth limit with a conservative default.

Workarounds

Add SystemStackError handling around Crass calls in your application. Buy more RAM.

Database specific
{
    "cwe_ids":  [
        "CWE-400"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-29T16:35:16Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

RubyGems / crass

Package

Name
crass
Purl
pkg:gem/crass

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.0.7

Affected versions

0.*
0.0.1
0.0.2
0.1.0
0.2.0
0.2.1
1.*
1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-6jxj-px6v-747w/GHSA-6jxj-px6v-747w.json"