Résumé
Crass: A large number of adjacent CSS comments can trigger a SystemStackError
Détails de l’avis
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).
Références
Vulnérabilités liées
Tout Supply chain →- MEDIUMCVE-2026-63386
js-toml allows uncontrolled recursion in `load()` leading `RangeError` (stack exhaustion) on deeply nested input
- HIGHCVE-2026-129222
Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in DependencyGraph.tree()/triples()
- HIGHCVE-2026-129223
Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in Synset.tree()/acyclic_tree() via WordNet relation traversal
- MEDIUMCVE-2026-129224
NLTK: Uncontrolled recursion in CCG lexicon parser causes denial of service via deeply nested category input
- MEDIUMCVE-2026-129225
NLTK: Uncontrolled recursion in DependencyGraph traversal causes denial of service via deep dependency chains
- MEDIUMCVE-2026-129226
NLTK: Uncontrolled recursion in semantic-logic type parser causes denial of service via nested type strings