Bump crass from 1.0.6 to 1.0.8
Type: Pull Request
State: Open
Association: Unknown
Comments: 2
(13 days ago)
(13 days ago)
dependencies ruby
Bumps crass from 1.0.6 to 1.0.8.
Release notes
Sourced from crass's releases.
v1.0.8
Security
- Moderate: Fixed a tokenizer bug in which a
)following an escaped backslash (\\) inside a bad URL didn't terminate the bad URL token, causing Crass to consume more input than a spec-compliant browser would. CSS sanitizers built on Crass could be tricked into passing through declarations, rules, or at-rules that a browser would then apply. (GHSA-pq4g-8rxf-4g29)Full Changelog: https://github.com/rgrove/crass/compare/v1.0.7...v1.0.8
v1.0.7
Security
High: Fixed a denial of service vulnerability in which a large numeric exponent could consume disproportionate CPU and memory before the value was clamped. Exponents are now bounded before
10**exponentis computed. (GHSA-6wmf-3r64-vcwv)Moderate: Fixed a scenario in which deeply nested simple blocks or functions could exhaust the Ruby stack and raise
SystemStackError, or could result in excessive memory usage. Parser nesting is now limited to a configurable maximum depth via a new option (:maximum_depth, with a conservative default of 25). Constructs nested more deeply are discarded as an:errornode with the value "maximum-depth-exceeded". (GHSA-6jxj-px6v-747w)Moderate: Fixed a scenario in which a long run of adjacent comments could exhaust the Ruby stack and raise
SystemStackError. Discarded comments are now skipped iteratively rather than recursively. (GHSA-wwpr-jff3-395c)Moderate: Fixed a denial of service vulnerability in which inputs containing many non-ASCII characters could cause excessive CPU usage due to inefficient handling of multi-byte characters during tokenization. (GHSA-8vfg-2r28-hvhj)
Changelog
Sourced from crass's changelog.
1.0.8 (2026-10-21)
Security
- Moderate: Fixed a tokenizer bug in which a
)following an escaped backslash (\\) inside a bad URL didn't terminate the bad URL token, causing Crass to consume more input than a spec-compliant browser would. CSS sanitizers built on Crass could be tricked into passing through declarations, rules, or at-rules that a browser would then apply. (GHSA-pq4g-8rxf-4g29)1.0.7 (2026-06-25)
Security
High: Fixed a denial of service vulnerability in which a large numeric exponent could consume disproportionate CPU and memory before the value was clamped. Exponents are now bounded before
10**exponentis computed. (GHSA-6wmf-3r64-vcwv)Moderate: Fixed a scenario in which deeply nested simple blocks or functions could exhaust the Ruby stack and raise
SystemStackError, or could result in excessive memory usage. Parser nesting is now limited to a configurable maximum depth via a new option (:maximum_depth, with a conservative default of 25). Constructs nested more deeply are discarded as an:errornode with the value "maximum-depth-exceeded". (GHSA-6jxj-px6v-747w)Moderate: Fixed a scenario in which a long run of adjacent comments could exhaust the Ruby stack and raise
SystemStackError. Discarded comments are now skipped iteratively rather than recursively. (GHSA-wwpr-jff3-395c)Moderate: Fixed a denial of service vulnerability in which inputs containing many non-ASCII characters could cause excessive CPU usage due to inefficient handling of multi-byte characters during tokenization. (GHSA-8vfg-2r28-hvhj)
Commits
fe77509Release 1.0.8689fc45Fix bad URL token not terminating at ) after an escaped backslash0eff227Add SECURITY.mdcfd5daaRelease 1.0.7da29664Fix inefficient handling of non-ASCII characters during tokenization25d78ccPrevent a long run of adjacent comments from exhausting the stackcf68287Limit recursion depth to prevent stack overflow and memory exhaustionea6726bPrevent resource exhaustion denial of service via excessively large exponents2b87347Bump version to 1.0.70d3be20Update CI workflow dependencies- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.
Package Dependencies
Security Advisories
Crass : Large numeric exponents cause CPU and memory denial of service
Crass: Incorrect tokenization of bad URLs enables CSS sanitizer bypass
Crass: Non-ASCII characters cause superlinear CPU consumption
Crass: A large number of adjacent CSS comments can trigger a SystemStackError
Crass: Deeply nested CSS blocks and functions can trigger a SystemStackError or excessive memory usage
Technical Details
| ID: | 16790129 |
| UUID: | 6199283099 |
| Node ID: | PR_kwDOTqVAsc8AAAABMwtCLw |
| Host: | GitHub |
| Repository: | KB-Helios/maybe |