Crassに攻撃者が細工したCSSで処理が停止する脆弱性
Summary
Crassは、Rubyで書かれたCSSパーサーです。1.0.7より前のバージョンでは、CSSに大量のコメントが隣接して含まれると再帰処理が深くなりすぎ、SystemStackErrorが発生してCSSを解析するアプリケーションがサービス停止に陥るおそれがあります。修正版の1.0.7が公開されているので、RubyGemsでcrassを1.0.7以降に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Crassは、Rubyで書かれたCSSパーサーです。1.0.7より前のバージョンでは、CSSに大量のコメントが隣接して含まれると再帰処理が深くなりすぎ、SystemStackErrorが発生してCSSを解析するアプリケーションがサービス停止に陥るおそれがあります。修正版の1.0.7が公開されているので、RubyGemsでcrassを1.0.7以降に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| rubygemscrass |
< 1.0.7→ 1.0.7 |
1.0.7 |
| rgrovecrass | — | Not listed |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-61847 ruby-crass Fix available
- Ubuntu UBUNTU-CVE-2026-61847 ruby-crass No fixed version in this record
Original description The description as published by the source.
Crass is a Ruby CSS parser that's fully compliant with the CSS Syntax Level 3 specification. Prior to 1.0.7, when the :preserve_comments option is not enabled, which is the default, Crass discards CSS comments by recursively consuming the next token. An attacker-provided stylesheet containing a very large number of adjacent comments can cause excessive recursion and trigger a SystemStackError, denying service to the parsing application. Preserving comments avoids this recursive path. This issue is fixed in version 1.0.7.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com