diff --git a/index.bs b/index.bs index b95748d..a9a2af2 100644 --- a/index.bs +++ b/index.bs @@ -1804,6 +1804,19 @@ respective private browsing modes are safely exposed to [=agents=] and that thes

Mitigations

+

Disabling WebMCP with Permissions Policy

+ +**What:** Disable access to WebMCP APIs in documents where WebMCP is not an intended capability. + +**Threats addressed:** Unintended tool registration or invocation by scripts executing in those +documents, including scripts introduced by injection vulnerabilities or compromised dependencies. + +**How:** Site authors can deliver a Permissions-Policy: tools=() response header. The +empty allowlist makes the {{tools}} [=policy-controlled feature=] unavailable to the document and its +descendants; see [[#permissions-policy]]. This defense applies to every descendant frame, including +both same-origin and cross-origin ones. The [=user agent=] enforces this before script runs on the +page, protecting against malicious scripts or dependencies from using WebMCP APIs. +

Restricting maximum input lengths

**What:** Restrict the maximum amount of characters