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

Nested tokens need every check

03

An outer encrypted token does not excuse skipping the inner signature verification.

Related RFCs and changes

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

DIAGRAM§ 3.3 ↗
RFC 8725 · § 3.3EXAMPLE
3 / 3
Nested tokens need every checkAn outer encrypted token does not excuse skipping the inner signature verification. Current state: Invalid inner signature.Nested tokens need every checkouter JWEinner JWSsignature must validateInvalid inner signature → reject
03
Invalid inner signature

Reject even when the outer encrypted envelope was valid.

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
KEY POINT

Validate every applicable cryptographic operation.

  • Validate every applicable cryptographic operation.
  • If any required operation fails, reject the token.
  • Only the plaintext resulting from successful validation becomes eligible for application checks.
DETAILS

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

Read the RFC section ↗

Diagrams simplify the RFC. Read the linked sections for complete requirements.

Privacy
All chapters in this RFC
  1. Do not let alg choose the policy
  2. A password is a weak MAC key
  3. Nested tokens need every check
  4. Bind issuer and audience
  5. Different purposes need different rules
RFC 9700 / CHAPTERS

Chapters

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

RFC status and corrections ↗