Skip to content
Medium 7.5

Crassに攻撃者が細工したCSSで処理が停止する脆弱性

CVE-2026-61847 First seen on SecPulse

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

PackageAffected → Fixed
rubygemscrass
< 1.0.7→ 1.0.7
rgrovecrass —

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details