Advisory

GHSA-wwpr-jff3-395c

Also known as: CVE-2026-61847

Summary

Crass: A large number of adjacent CSS comments can trigger a SystemStackError

Details

Impact

When the :preserve_comments option is not enabled (which is the default behavior), Crass discards CSS comments by recursively consuming the next token. An attacker who provides a stylesheet containing a very large number of adjacent comments can cause excessive recursion and trigger a SystemStackError.

Patches

This is fixed in Crass 1.0.7, which no longer recurses when discarding comments.

Workarounds

Set the :preserve_comments option to true if this is acceptable to your use case (recursion doesn't occur when comments are preserved).

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-10-29 16:35 UTC
Modified
2026-10-29 16:45 UTC

Affected packages and fixes

crass

RubyGems · All systems

Affected

  • introduced 0, fixed 1.0.7 (ecosystem)

Fixed versions

1.0.7

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences