Cursor Signing is a method of cryptographically signing pagination cursors so a server can verify they have not been altered. The cursor usually encodes position or state for the next page, and the signature helps prevent tampering, replay of stale cursors, and unsafe client-side modification of query flow.
What Cursor Signing Protects
Cursor signing protects the handoff between pages by letting the server verify that a pagination cursor is authentic and unmodified. That matters because the cursor often carries opaque state about position, filters, or traversal order. Without a signature, a client can tamper with the cursor, replay stale state, or try to steer the query flow into unintended results.
How Signed Cursors Work
In a signed-cursor design, the server emits a cursor token and a cryptographic signature, often over the cursor payload plus any context the server wants to bind, such as the query shape or tenant scope. On the next request, the server recomputes and verifies the signature before trusting the cursor. If verification fails, the page request is rejected rather than interpreted as legitimate state.
This pattern is useful because the cursor can stay opaque to the client while still being integrity-protected. The client may hold the token, but it should not be able to edit offsets, timestamps, object references, or other internal fields without detection. In practice, cursor signing is an integrity control, not a confidentiality control: it helps prevent tampering, but it does not stop a client from seeing whatever the cursor was already allowed to reveal.
Why Unsigned Cursors Become a Security Problem
Unsigned or weakly protected cursors can let a user alter pagination behavior in ways the application did not intend. That can expose adjacent records, skip authorization checks embedded in traversal logic, or trigger inconsistent page results when the cursor is reused out of order. The OWASP API Security Top 10 is relevant here because broken authorization and unsafe resource access often show up first in API pagination and list endpoints.
Cursor tampering is also attractive when pagination controls access to sensitive business data, audit trails, or multi-tenant result sets. A forged cursor can sometimes behave like a shortcut through server-side state, so the failure is not only incorrect navigation, but also an access-control boundary being expressed through a token that was never meant to be editable.
Implementation and Verification Considerations
Good implementations bind the signature to the exact cursor semantics the server expects, then reject any cursor that has been changed, expired, or replayed outside its intended context. For broader hardening around the surrounding service, NIST SP 800-53 Rev 5 Security and Privacy Controls provides control families that align with authentication, integrity, and logging, while NIST SP 800-207 Zero Trust Architecture reinforces the principle that a token or session artifact should never be trusted simply because it is present.
It is also worth aligning cursor design with the data flow behind the endpoint. If pagination state can reach privileged objects, cross-tenant data, or workflow controls, the cursor should be treated as security-sensitive input and reviewed alongside the endpoint’s authorization logic, not as a purely UX convenience.
Risk and Threat Considerations
Signed cursors reduce a common abuse path, but they can still fail if the server signs too little context, accepts overly long-lived cursors, or does not validate the cursor against the current request context. In those cases an attacker may replay stale state, reuse a cursor in a different session, or probe how pagination logic maps to underlying records.
Failure mechanism: The application trusts cursor content before verifying integrity, or it verifies only part of the cursor state, allowing modification, replay, or cross-context reuse.
Impact: Attackers can manipulate result traversal, extract data beyond the intended page boundary, or create authorization gaps where pagination becomes an indirect access path.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5, NIST Zero Trust (SP 800-207) and OWASP ASVS set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP API Security Top 10 | API5 — Broken Function Level Authorization | Pagination cursors can steer privileged list functions and reveal access gaps. |
| Recommendation — Validate pagination endpoints so cursor-driven requests cannot bypass function-level authorization. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Signed cursors are security tokens whose lifecycle and integrity must be managed. |
| AU-3 — Content of Audit Records | Cursor misuse and verification failures benefit from logs that preserve request context. | |
| Recommendation — Protect cursor tokens with controlled issuance, expiry, and integrity checks. Log cursor verification outcomes and enough context to investigate replay or tampering. | ||
| NIST Zero Trust (SP 800-207) | Zero Trust Architecture | Cursor trust should be explicit and continuously validated rather than assumed from possession. |
| Recommendation — Require explicit verification of cursor state on every request before relying on it. | ||
| OWASP ASVS | V8 — Authorization | Signed cursors support request-time authorization boundaries in paginated workflows. |
| Recommendation — Verify that cursor handling cannot alter what the user is authorized to access. | ||
Practitioner Guidance
Why practitioners should care: Cursor signing is most valuable when pagination state influences access decisions, query scope, or multi-tenant isolation. Treat the cursor as a security control surface, not just a developer convenience, because a weak cursor can become a quiet integrity failure in an otherwise well-protected API.
Common misunderstanding: A signed cursor is not automatically safe just because it is opaque. The server still needs to validate expiry, binding, and authorization context, and it should assume that any client-held token will eventually be copied, replayed, or tested for tampering.
Related resources from NHI Mgmt Group
- Guide: What Is Cursor? Features, Pricing, Models and History
- How should teams rotate JWT signing keys without breaking production traffic?
- What is the difference between code signing and code provenance?
- Should organisations replace symmetric JWT signing in high-risk API flows?
- When does code signing become essential rather than optional?
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org