LOW AI PREVALENCE: MEDIUM auth.cookie.no-samesite
A session/auth cookie is being set WITHOUT the SameSite attribute.
Why AI tools produce this: AI coding tools produce this regularly, typically when prompted for a shortcut or a quick fix.
Why this matters
Modern browsers default to Lax, but explicit is better, and APIs that legitimately need cross-site usage should consciously opt into None (with Secure), not silently inherit whatever the browser does today.
For most auth flows, SameSite=Strict is the right answer; for OAuth callbacks, SameSite=Lax is required.
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.cookie.no-samesite -- <reason>