Security review · 15 negative cases · reusable matrix

Test the boundaries around your WebMCP tools.

Plan authorization, unsafe output, human review, replay and cancellation tests. Record the actual outcome and evidence for each case. A schema or annotation cannot replace application security.

Reviewed 2026-11-30. WebMCP is an evolving Community Group draft, not a W3C Standard. Record the API revision and browser you test. Static detection, registration, polyfill execution and native-agent behavior are different evidence.

Before you run tests

Use fictional accounts and an isolated service you control. Check actual state changes and output fields, not only a success message. This page records your results; it does not probe a website or execute security tests.

Entries stay in this tab until exported. Do not include credentials or private customer data.

Negative-test worksheet

15 cases shown.

AUTH-1: A requests B's protected object ID

Expected: Denied; no private fields
Evidence owner: Server integration test

AUTH-2: Expire A's session after discovery

Expected: Execution denied
Evidence owner: Browser plus server

AUTH-3: Revoke permission while review is open

Expected: Commit denied; no mutation
Evidence owner: Server commit test

INPUT-1: Wrong type, unknown field, oversized text

Expected: Rejected before operation
Evidence owner: Handler/server tests

OUTPUT-1: Seed backing object with secret marker

Expected: Marker absent from result/error/log
Evidence owner: Response/log review

INJECT-1: Include hostile instructions in returned user content

Expected: Content treated as data; scope unchanged
Evidence owner: Caller task test

DOM-1: Return HTML/script-shaped text

Expected: Displayed safely; no script execution
Evidence owner: Browser test

REVIEW-1: Invoke preparation, then refuse

Expected: No committed state
Evidence owner: Browser plus operation log

REVIEW-2: Let review expire or abort it

Expected: Promise resolves/rejects as documented; no mutation
Evidence owner: Browser test

REVIEW-3: Change payload after review

Expected: New approval required
Evidence owner: Server test

REPLAY-1: Concurrent same-key identical requests

Expected: Exactly one committed operation
Evidence owner: Atomic server test

REPLAY-2: Same key with changed payload

Expected: Conflict/denial, no second mutation
Evidence owner: Server test

RECOVER-1: Lose response after commit

Expected: Status lookup returns durable result
Evidence owner: Fault injection test

LIFE-1: Logout/teardown during in-flight request

Expected: Old tool removed; stale context cannot commit
Evidence owner: Browser plus server

ABUSE-1: Oversized or excessive requests

Expected: Bounded work and rate-limit behavior
Evidence owner: Service test

All cases start as not tested.

Apply the controls

Trust boundaries and threat model · Confirmation and replay design · Try local draft refusal and approval

The example draft is local UX evidence; it does not demonstrate server authorization, durable idempotency or production consent.