Join our Newsletter — 33% off our NHI Course
Home› FAQ› Authentication, Authorisation & Trust› Why does requestState need integrity protection in MCP?
Authentication, Authorisation & Trust

Why does requestState need integrity protection in MCP?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated December 3, 2026 Domain: Authentication, Authorisation & Trust

requestState needs integrity protection so the server can trust that the client did not alter the pending operation, scope, or user context between MCP round trips. Protect it with a signed or MACed value, or keep the state server-side and reference it with an opaque token. Without integrity, attackers can tamper with authorisation flow parameters.

What integrity protection is doing in MCP requestState

requestState is not just a convenience field, it is part of the trust boundary around a multi-round-trip flow. Its integrity matters because the server is making an authorisation or context decision based on state that may be carried across separate MCP interactions. If that state can be changed in transit, the protocol can no longer assume the request that comes back is the same one that was originally approved.

That is why the safest patterns are either to protect the value cryptographically, or to avoid trusting client-editable state at all. A signed or MACed value lets the server detect tampering, while an opaque token that maps to server-side state keeps sensitive flow details out of the client’s hands. The common design goal is the same: the server should be able to verify continuity without depending on mutable client input.

In practice, this is the difference between a state handle and an assertion. A handle says “look up the real state here,” while an assertion says “this is still the same operation, scope, and user context I originally saw.” For requestState, the integrity property is what keeps that distinction reliable across round trips.

How tampering changes the security model

Without integrity protection, an attacker who can influence the client or intercept the flow can attempt to alter authorisation parameters, swap the pending operation, or desynchronise the user context from the server’s original decision. That turns requestState into a trust bypass point rather than a continuity mechanism.

When a protocol relies on client-returned state, the server must assume the client is a potentially hostile carrier of that state. If integrity is missing, even small changes can have outsized effect, because the state may drive which operation is resumed, which resource is targeted, or which permissions are assumed for the next step.

The practical lesson is that integrity failures here are usually not about confidentiality first, they are about control of the workflow itself. If the server cannot tell whether the state was modified, it cannot safely decide whether the resumed action is still authorised.

Design choices that make requestState safer

There are two robust patterns. One is cryptographic integrity on the state value itself, typically with a signature or MAC so the server can detect changes. The other is server-side state, where the client only carries an opaque reference and the server stores the sensitive details internally.

The second pattern is often easier to reason about when the state contains anything security-sensitive, because it reduces the amount of trust placed in the client. It also narrows what can be exposed through logs, browser history, copy and paste, or intermediary tooling that may observe the client-side value.

Where the state must remain client-visible, the integrity check should cover the exact fields that matter to the security decision, not just a loose identifier. If the operation, scope, or user context can change, the protection has to bind those elements together so that partial tampering is still detectable.

Risk and Threat Considerations

Request state tampering can create authorisation confusion, flow manipulation, and unintended privilege use in a multi-step protocol. The main security issue is not simply that a value changes, but that the server may accept a resumed action under assumptions that no longer match the original request.

Failure mechanism: An attacker modifies client-held state between MCP round trips, causing the server to process a different pending operation, scope, or user context than the one originally established. If the state is unsigned, unhashed, or otherwise unbound, the server has no reliable way to detect the tampering.

Impact: The result can be unauthorised action, incorrect authorisation decisions, or a confused-deputy style failure where a legitimate server action is redirected into an unsafe one. In workflows that bridge user intent and tool execution, that can become a direct path to data exposure or misuse of privileged capability.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 and OWASP API Security Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuserequestState tampering can change the authorised action or context in a delegated flow.
Recommendation — Bind resumed actions to verified state so privilege and context cannot be altered between steps.
OWASP API Security Top 10API5 — Broken Function Level AuthorizationAltered requestState can steer the server into resuming a different function than intended.
Recommendation — Verify the exact function being resumed before continuing the MCP workflow.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementSigned or MACed state depends on protecting integrity-bearing tokens across a session.
AC-6 — Least PrivilegeIntegrity-bound state prevents broader access from being inferred from altered client input.
SC-16 — Transmission of Security AttributesrequestState is a security attribute that must survive transit without modification.
Recommendation — Protect state tokens and rotate or invalidate them when integrity cannot be assured. Limit resumed operations to the minimum access implied by the verified state. Transmit security-relevant state with integrity protections or server-side indirection.

Practitioner Guidance

What to verify: Confirm that the resumed MCP flow does not trust any mutable client field unless it is integrity-protected and bound to the original operation. The important check is whether the server can prove the requestState it receives is the same one it issued, not merely similar.

Decision rule: If the state is security-relevant, prefer an opaque server-side reference; if the state must be client-carried, require cryptographic integrity over the exact values that determine authorisation and context.

Common mistake: Treating requestState as a routing convenience instead of a security boundary. Once the value affects what the server will continue, approve, or delegate, it must be handled as trusted input only after verification.

Practitioner takeaway: In MCP, requestState is safe only when the server can detect tampering or avoid trusting client-editable state altogether, because continuity without integrity is not continuity, it is an unverified assumption.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on December 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org