Skip to content

feat(security): HTML sanitizer allowlist for CMS blocks - #1

Merged
HecFranco merged 3 commits into
mainfrom
security/html-sanitize-allowlist
Aug 19, 2026
Merged

feat(security): HTML sanitizer allowlist for CMS blocks#1
HecFranco merged 3 commits into
mainfrom
security/html-sanitize-allowlist

Conversation

@HecFranco

Copy link
Copy Markdown
Contributor

Summary

  • Add html.sanitize.strategy (none/strip/allowlist/service) with persist + render sanitization
  • Doctrine subscriber for text/compare/cta block translations
  • Flex recipe: when@prod: allowlist
  • CI: composer audit step

Test plan

  • PHPUnit (PageBlockProvider, Allowlist sanitizer, DI)

Made with Cursor

Audit requires composer.lock/vendor; running before install failed CI.
Cover subscriber, protection strategies, allowlist edge cases, and
extension service wiring so CI meets the ≥99% threshold.
@github-actions

Copy link
Copy Markdown

@coderabbitai review

@HecFranco
HecFranco merged commit 312a5f6 into main Aug 19, 2026
14 checks passed
@HecFranco
HecFranco deleted the security/html-sanitize-allowlist branch August 19, 2026 14:51
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