Skip to content

content(security): add a Trusted Types page#51

Merged
jdevalk merged 2 commits into
mainfrom
standards-scan/trusted-types-2026-06-23
Jun 23, 2026
Merged

content(security): add a Trusted Types page#51
jdevalk merged 2 commits into
mainfrom
standards-scan/trusted-types-2026-06-23

Conversation

@jdevalk

@jdevalk jdevalk commented Jun 23, 2026

Copy link
Copy Markdown
Owner

What changed

New spec page: Trusted Types under security.

  • src/content/spec/security/trusted-types.mdstatus: recommended, order: 95.
  • Changelog entry (added): src/content/changelog/2026-06-23-trusted-types.md.
  • relatedSlugs wired on content-security-policy, subresource-integrity, and reporting-endpoints.
  • OG images regenerated (new per-page image + the four count-driven images).

Why now

Trusted Types reached Baseline "newly available" in February 2026 — Chrome/Edge since v83 (2020), Safari 26 (Sep 2025), Firefox completing the set in Feb 2026. A feature newly reaching Baseline is the scan's strongest signal to add a page. It also closes a gap the spec already half-acknowledges: the CSP page recommends require-trusted-types-for 'script' but never explains what Trusted Types are.

Primary sources

Status justification

recommended, not required: the platform works without it — it is defence-in-depth against DOM-based XSS, not a contract the web breaks without. Now that it is Baseline and enforced purely via response headers + a DOM policy API, it is platform-agnostic and shippable, which is why it earns a page rather than a Slack "needs implementation" flag.

Verification

  • npm run build passes (148 pages indexed; HTML + .md endpoint both emit).
  • npm run lint / npm run format:check clean (one pre-existing any warning, unrelated).

Draft — not for auto-merge. MCP Worker redeploy is the human post-merge step.

🤖 Generated with Claude Code

Trusted Types reached Baseline in February 2026 (Firefox completing the
set; Chrome/Edge since 2020, Safari 26). It blocks DOM-based XSS at the
sink by demanding non-spoofable typed values, switched on via the
require-trusted-types-for and trusted-types CSP directives.

New security page (status: recommended), changelog entry, and
relatedSlugs wired on CSP, SRI, and reporting-endpoints. OG images
regenerated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 23, 2026

Copy link
Copy Markdown

Deploying specification-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4e2da66
Status: ✅  Deploy successful!
Preview URL: https://e18a7c0c.specification-website.pages.dev
Branch Preview URL: https://standards-scan-trusted-types.specification-website.pages.dev

View logs

Rework "Why it matters" around a worked DOM-XSS example: a search
widget that writes location.search into innerHTML, the img-onerror
cookie-exfiltration payload that abuses it, and the TypeError Trusted
Types throws in its place. Add the three trusted types mapped to their
sink families so the breadth beyond innerHTML is explicit. Use a single
consistent policy name ("escape") across every snippet so they all
validate under the page's own CSP, and explain the special auto-applied
"default" name in How to implement.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jdevalk jdevalk marked this pull request as ready for review June 23, 2026 11:00
@jdevalk jdevalk merged commit 779cbd7 into main Jun 23, 2026
8 checks passed
@jdevalk jdevalk deleted the standards-scan/trusted-types-2026-06-23 branch June 23, 2026 11:00
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