OWASPASVS 5.0 requirement

ASVS-V9.1.2 Only algorithms on an allowlist can be used to create and verify self-contained tokens, for a given context.

L1 Published 2025 Official page ↗
Standard
OWASP ASVS 5.0
Chapter
V9 Self-contained Tokens
Section
V9.1 Token source and integrity
Level
L1 (requirement applies from this verification level up)

Requirement

Verify that only algorithms on an allowlist can be used to create and verify self-contained tokens, for a given context. The allowlist must include the permitted algorithms, ideally only either symmetric or asymmetric algorithms, and must not include the 'None' algorithm. If both symmetric and asymmetric must be supported, additional controls will be needed to prevent key confusion.