Up to [cvs.NetBSD.org] / pkgsrc / www / ruby-crass
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Pullup ticket #7365 - requested by taca
www/ruby-crass: Security fix
Revisions pulled up:
- www/ruby-crass/Makefile 1.5
- www/ruby-crass/PLIST 1.4
- www/ruby-crass/distinfo 1.7
---
Module Name: pkgsrc
Committed By: taca
Date: Sat Nov 7 15:44:33 UTC 2026
Modified Files:
pkgsrc/www/ruby-crass: Makefile PLIST distinfo
Log Message:
www/ruby-crass: update to 1.0.8
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)
www/ruby-crass: update to 1.0.8 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)
Pullup ticket #7159 - requested by taca
www/ruby-crass: security fix
Revisions pulled up:
- www/ruby-crass/Makefile 1.4
- www/ruby-crass/PLIST 1.3
- www/ruby-crass/distinfo 1.6
---
Module Name: pkgsrc
Committed By: taca
Date: Sun Jun 28 15:21:40 UTC 2026
Modified Files:
pkgsrc/www/ruby-crass: Makefile PLIST distinfo
Log Message:
www/ruby-crass: update to 1.0.7
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**exponent is 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 :error node 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)
www/ruby-crass: update to 1.0.7 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**exponent is 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 :error node 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)
www/ruby-crass: update to 1.0.6 Update ruby-crass to 1.0.6. 1.0.6 (2020-01-12) ------------------ * Number values are now limited to a maximum of `Float::MAX` and a minimum of negative `Float::MAX`. (#11) * Added project metadata to the gemspec. (#9 - @orien) 1.0.5 (2019-10-15) ------------------ * Removed test files from the gem. [@t-richards - #8][8] [8]:https://github.com/rgrove/crass/pull/8 1.0.4 (2018-04-08) ------------------ * Fixed whitespace warnings. (#7 - @yahonda)
www/ruby-crass: add version 1.0.2 package Crass is a Ruby CSS parser that's fully compliant with the CSS Syntax Level 3 specification. Features -------- * Pure Ruby, with no runtime dependencies other than Ruby 1.9.x or higher. * Tokenizes and parses CSS according to the rules defined in the 14 November 2014 editor's draft of the [CSS Syntax Level 3][css] specification. * Extremely tolerant of broken or invalid CSS. If a browser can handle it, Crass should be able to handle it too. * Optionally includes comments in the token stream. * Optionally preserves certain CSS hacks, such as the IE "*" hack, which would otherwise be discarded according to CSS3 tokenizing rules. * Capable of serializing the parse tree back to CSS while maintaining all original whitespace, comments, and indentation.