MEDIUM AI PREVALENCE: MEDIUM auth.flow.password-min-length
A password validation schema is enforcing a minimum length of less than 8 characters.
Why AI tools produce this: AI coding tools produce this regularly, typically when prompted for a shortcut or a quick fix.
Why this matters
NIST SP 800-63B recommends ≥ 8 characters for user-chosen passwords (with NO mandatory complexity rules: length is the dominant strength factor). OWASP ASVS V2.1.1 requires ≥ 12 for high-assurance applications.
Common LLM-generated mistake: password: z.string().min(6) because "6 looks reasonable". It isn't. Bump the floor to 8 minimum, 12 preferred.
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.flow.password-min-length -- <reason>