Skip to content

fix(security): apply outputEscape to {% echo %} - #983

Merged
harttle merged 1 commit into
masterfrom
fix/echo-output-escape
Oct 27, 2026
Merged

harttle merged 1 commit into
masterfrom
fix/echo-output-escape

Conversation

@harttle

@harttle harttle commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • {% echo %} and {% liquid echo %} apply outputEscape the same way as {{ }}, matching Shopify Liquid's echo which renders through Variable / apply_global_filter.
  • {% cycle %} stays unescaped, matching Shopify's cycle; document that in the escaping/options tutorials.
  • Addresses GHSA-p84m-94ch-jr7v for the echo path.

Test plan

  • test/integration/liquid/output-escape.spec.ts
  • PoC: echo escaped; cycle still raw (Shopify-compatible)
  • npm run build

Made with Cursor

@coveralls

coveralls commented Oct 27, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 40542185726

Warning

No base build found for commit 920166e on master.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 99.397%

Details

  • Patch coverage: 4 of 4 lines across 1 file are fully covered (100%).

Uncovered Changes

No uncovered changes found.

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 3113
Covered Lines: 3107
Line Coverage: 99.81%
Relevant Branches: 1199
Covered Branches: 1179
Branch Coverage: 98.33%
Branches in Coverage %: Yes
Coverage Strength: 20873.42 hits per line

💛 - Coveralls

Match Shopify Liquid: echo uses the same escape path as {{ }}. Respect | raw.

Co-authored-by: Cursor <[email protected]>
@harttle
harttle force-pushed the fix/echo-output-escape branch from a956314 to 6268826 Compare October 27, 2026 16:34
@harttle
harttle merged commit 46ab5d8 into master Oct 27, 2026
13 checks passed
@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