Skip to content

fix(security): enable Twig autoescaping and escape ACF/block context - #31

Merged
callinmullaney merged 1 commit into
release-2.xfrom
fix/twig-autoescape
Jul 23, 2026
Merged

fix(security): enable Twig autoescaping and escape ACF/block context#31
callinmullaney merged 1 commit into
release-2.xfrom
fix/twig-autoescape

Conversation

@callinmullaney

Copy link
Copy Markdown

Address S1/S2 from the release review by enabling HTML autoescaping and restricting ACF block template resolution to discovered component templates.

Trusted WordPress HTML remains raw only at:

  • templates/single.twig: post.content
  • templates/page.twig: post.content
  • templates/partials/comment.twig: comment.content|wpautop
  • templates/partials/tease.twig: post.excerpt

Summary

This PR fixes/implements the following bugs/features

  • Bug 1
  • Bug 2
  • Feature 1
  • Feature 2
  • Breaking changes

Explain the motivation for making this change. What existing problem does the pull request solve?

Documentation update (required)

If this pull request requires a change to Emulsify documentation, those changes, updates, and/or new information must accompany this pull request.

How to review this pull request

  • Step 1
  • Step 2
  • Step 3: Profit

Closing issues

Closes #

Address S1/S2 from the release review by enabling HTML autoescaping and restricting ACF block template resolution to discovered component templates.

Trusted WordPress HTML remains raw only at:
- templates/single.twig: post.content
- templates/page.twig: post.content
- templates/partials/comment.twig: comment.content|wpautop
- templates/partials/tease.twig: post.excerpt
@callinmullaney
callinmullaney merged commit a01a4c6 into release-2.x Jul 23, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant