Uncontrolled Recursion Affecting crass package, versions <1.0.7


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.49% (42nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-CRASS-22132613
  • published2 Nov 2026
  • disclosed29 Oct 2026
  • creditUnknown

Introduced: 29 Oct 2026

NewCVE-2026-61847  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade crass to version 1.0.7 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion through the recursive processing of CSS comments when the :preserve_comments option is not enabled. An attacker can cause excessive recursion and trigger a stack overflow by supplying a stylesheet with a very large number of adjacent comments.

Workaround

This vulnerability can be mitigated by setting the :preserve_comments option to true.

CVSS Base Scores

version 4.0
version 3.1