GHSA-wwpr-jff3-395c

    Dashboard / Vulnerabilities / GHSA-wwpr-jff3-395c

    GHSA-wwpr-jff3-395c

    Published: 29 Oct 2026Last Modified: 29 Oct 2026

    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).

    Affected packages

    Package

    Name: crass

    Purl: pkg:gem/crass

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -1.0.7

    Affected versions

    0.0.1
    0.0.2

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High