HIGH AI PREVALENCE: MEDIUM auth.go.tls.min-version
A tls.Config is created with MinVersion pinned to an obsolete protocol: SSL 3.0, TLS 1.0, or TLS 1.1.
Why AI tools produce this: AI coding tools produce this regularly, typically when prompted for a shortcut or a quick fix.
Why this matters
These versions have known cryptographic weaknesses (POODLE, BEAST, downgrade attacks) and are deprecated by RFC 8996. Allowing them lets an attacker negotiate a broken cipher and intercept or tamper with OAuth/OIDC traffic, leaking authorization codes, access tokens, and client secrets.
Set MinVersion to at least tls.VersionTLS12, and ideally tls.VersionTLS13, so the handshake refuses obsolete protocols.
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.go.tls.min-version -- <reason>