Visual RFC.
ALL RFCs / RFC 8725
Read the RFC ↗
RFC 8725 / MECHANISMS

Do not let alg choose the policy

01

The receiving application limits acceptable algorithms instead of trusting the token header to decide.

RFC 8725 · § 3.1EXAMPLE
3 / 3
03
Mismatch rejected

A token claiming an unauthorized algorithm stops before claims are used.

Do not let alg choose the policyThe receiving application limits acceptable algorithms instead of trusting the token header to decide. Current state: Mismatch rejected.Do not let alg choose the policyconfigured policyalgorithm A + key Auntrusted tokenalg: Balg mismatchreject before claims

Key idea: The caller specifies a supported set of algorithms.

Terms

Look up a term in the glossary ↗

Rules & examples
  • The caller specifies a supported set of algorithms.
  • Ensure the algorithm matches the cryptographic operation and key.
  • Each key must be used with exactly one algorithm.

The illustration is schematic. Example values are illustrative; profiles and later security guidance can add requirements.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A key is different from permission.

An app, a person, and a server have different roles. Follow who asks, who grants permission, and who checks the credential. A key in the drawing is an analogy, not a literal protocol field.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

What changed
RFC 7519 JWT formatRFC 8725 § 3.1

This BCP updates JWT processing with explicit algorithm verification and per-key algorithm binding to prevent algorithm confusion.

Read the updated RFC section ↗

All chapters in RFC 8725

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗