Skip to content

fix(security): apply outputEscape to {% cycle %} - #984

Merged
harttle merged 4 commits into
masterfrom
fix/cycle-output-escape
Oct 27, 2026
Merged

harttle merged 4 commits into
masterfrom
fix/cycle-output-escape

Conversation

@harttle

@harttle harttle commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Apply outputEscape to {% cycle %} candidates, using the same call pattern as {% echo %}.
  • Stricter than Shopify Liquid (cycle there writes without apply_global_filter). Intentional for LiquidJS when outputEscape is set.
  • Follow-up to fix(security): apply outputEscape to {% echo %} #983 / GHSA-p84m-94ch-jr7v for the remaining cycle path.

Test plan

  • test/integration/liquid/output-escape.spec.ts (cycle case)
  • test/integration/tags/cycle.spec.ts

Made with Cursor

Escape cycle candidates the same way as echo. Stricter than Shopify Liquid, which leaves cycle unescaped.

Co-authored-by: Cursor <[email protected]>
@coveralls

coveralls commented Oct 27, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 40553573207

Coverage increased (+0.002%) to 99.399%

Details

  • Coverage increased (+0.002%) from the base build.
  • Patch coverage: 16 of 16 lines across 2 files are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 3119
Covered Lines: 3113
Line Coverage: 99.81%
Relevant Branches: 1208
Covered Branches: 1188
Branch Coverage: 98.34%
Branches in Coverage %: Yes
Coverage Strength: 21349.81 hits per line

💛 - Coveralls

harttle and others added 3 commits October 28, 2026 01:26
Parse cycle values as filtered values so | raw skips escaping, including named groups.

Co-authored-by: Cursor <[email protected]>
@harttle
harttle merged commit 2e1ebe0 into master Oct 27, 2026
13 checks passed
github-actions Bot pushed a commit that referenced this pull request Oct 28, 2026
## [10.30.1](v10.30.0...v10.30.1) (2026-10-28)

### Bug Fixes

* apply outputEscape to {% echo %} ([46ab5d8](46ab5d8))
* **array_to_sentence_string:** coerce non-array input with toArray ([#968](#968)) ([e843466](e843466)), closes [#964](#964)
* **base64_decode:** throw on invalid input in every build ([#971](#971)) ([83bbfe0](83bbfe0)), closes [#965](#965)
* **date_to_rfc822:** use English day and month names ([#974](#974)) ([e94a1c4](e94a1c4)), closes [#973](#973)
* **filters:** round must not alter large or high-precision numbers ([#980](#980)) ([ea22af4](ea22af4)), closes [hi#precision](https://github.com/hi/issues/precision)
* **filters:** truncate and slice must not split surrogate pairs ([#981](#981)) ([57016eb](57016eb)), closes [String#length](https://github.com/String/issues/length) [String#slice](https://github.com/String/issues/slice)
* pad %Y to 4 digits like Ruby ([#978](#978)) ([95a2eed](95a2eed))
* **security:** apply outputEscape to {% cycle %} ([#984](#984)) ([2e1ebe0](2e1ebe0))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 10.30.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants