Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Docs: closed shadow roots are not protected (#164 follow-up)#168

Merged
twschiller merged 1 commit into
mainfrom
docs/closed-shadow-root-limitation
Jun 5, 2026
Merged

Docs: closed shadow roots are not protected (#164 follow-up)#168
twschiller merged 1 commit into
mainfrom
docs/closed-shadow-root-limitation

Conversation

@twschiller

Copy link
Copy Markdown
Contributor

Summary

Closes #164 entirely (Tiers 1–3 + the docs limitation note).

What changed

  • docs/src/content/docs/rules.md — new Coverage Scope subsection that calls out open-shadow-root reachability (what works) and closed-shadow-root opacity (what doesn't). Phrasing stays abstract about what an attacker could plant there, in line with the project's "no prompt-injection examples in published docs" convention.

Test plan

  • bun run check — Astro typecheck clean.
  • bun run build — docs site builds clean (8 pages).

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agent-browser-shield-demo-site Ready Ready Preview, Comment Jun 5, 2026 3:50pm

Request Review

The shadow-DOM piercing PRs (Tiers 1–3) covered open shadow roots.
Closed roots (`attachShadow({ mode: "closed" })`) are opt-out of all
external JavaScript access by spec — `host.shadowRoot` is null,
adoptedStyleSheets and MutationObserver don't cross the boundary,
and no supported API undoes that.

Add a short Coverage Scope section to the Rules page documenting
this gap. The phrasing stays abstract about what an attacker could
hide there (no injection-pattern examples in published docs, per
the project convention).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@twschiller twschiller force-pushed the docs/closed-shadow-root-limitation branch from 5eeb7e6 to c6d8b69 Compare June 5, 2026 15:50
@twschiller twschiller self-assigned this Jun 5, 2026
@twschiller twschiller merged commit 49c8e1c into main Jun 5, 2026
7 checks passed
@twschiller twschiller deleted the docs/closed-shadow-root-limitation branch June 5, 2026 15: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.

Audit: rules are blind to content inside shadow roots

1 participant