HIGH AI PREVALENCE: HIGH auth.jwt.alg-none
JWTs are being verified with the none algorithm in the allowed list.
Why AI tools produce this: AI coding tools generate this anti-pattern by default, it appears in a large share of AI-written auth code.
Why this matters
An attacker can forge any token by simply setting alg: none in the header and supplying no signature, because the verification routine will accept it.
Restrict algorithms to the ones you actually use, e.g. ["RS256"] or ["ES256"]. Never include "none" or "None" in production code paths.
RFC 7518 §3.6 explicitly warns: "Implementations SHOULD NOT support the 'none' algorithm in deployed systems."
VULNERABLE
SAFE
Suppressing this rule
If a finding is a genuine false positive, scope the suppression to the exact line and leave a reason, never disable the rule project-wide. Disable directives are line-scoped by design.
// oauthlint-disable-next-line auth.jwt.alg-none -- <reason>