CAPTCHAs and login puzzles: WCAG 2.2's accessible authentication rule

Published 29 October 2026

In short: WCAG 2.2 added Success Criterion 3.3.8 Accessible Authentication (Minimum), level AA. It says a login may not demand a "cognitive function test" - remembering a password, transcribing a code, solving a puzzle - unless there is an alternative that avoids it, a mechanism that assists (like a password manager or pasting), or the test is object recognition or personal content the user provided. The practical hits: never block paste in password or OTP fields, make sure autofill works, and do not let a CAPTCHA be the only way through authentication.

What is a "cognitive function test"?

The W3C's definition covers memorization (a password, a set of characters, a swipe pattern) and puzzles. Two things are explicitly not cognitive function tests: your own name, email or phone number - personal details that are consistent across websites - and device-based methods like hardware keys, OS biometrics (Windows Hello, Touch ID/Face ID) or approve-on-another-device prompts.

Which common login patterns pass and fail?

Pattern3.3.8 statusWhy
Password field with working autofill and pastePassesThe password manager is the assistance mechanism
Password field that blocks pastingFails (unless an alternative exists)Forces memory + transcription; W3C shows this exact case as a failure
OTP in six separate digit boxes that break pasteFails (unless an alternative exists)Forces transcription digit by digit
"Enter the 1st, 3rd and 5th character of your password"Fails (unless an alternative exists)Copy-paste cannot match the format, so it forces transcription
Object-recognition CAPTCHA ("pick the traffic lights")Excepted at AA, not at AAAObject recognition has an AA exception; 3.3.9 Enhanced removes it
Hardware key / device prompt / OS biometricPassesNot a cognitive function test at all

What are the less obvious traps?

  • Triggered CAPTCHAs count too. A puzzle that only appears after repeated failed logins, or when an ad blocker is present, is still part of your authentication process and still covered.
  • Every step must comply. In multi-factor flows there must be a full path through that avoids cognitive function tests - one accessible step does not rescue an inaccessible second factor.
  • Account recovery is authentication. If recovering the account needs the user to remember or transcribe something, that step needs an alternative too.
  • Masked passwords add load. A show/hide toggle is not required by the criterion, but the W3C notes it improves success for people with cognitive disabilities and typing difficulties.

What should you actually do?

Mark up login fields properly (they meet 1.3.5 Input Purpose and 4.1.2 Name, Role, Value - see our forms guide), never block paste, let OTPs be pasted or autofilled, and prefer device-based second factors where you can. This criterion was one of the nine additions in WCAG 2.2, so older checklists may not mention it at all.

Frequently asked questions

Does WCAG 2.2 ban CAPTCHAs on login forms?

Not outright. Under 3.3.8 (AA), a CAPTCHA used in authentication must not be the only path: there must be a method that avoids a cognitive function test. Recognizing objects is excepted at AA level, but that exception disappears at AAA (3.3.9). CAPTCHAs that only appear after failed logins are still in scope.

Is a normal username and password form a failure?

Not if the fields are properly marked up so browsers and password managers can autofill them, and pasting is not blocked. Remembering the password is a cognitive function test, but the password manager is the assistance mechanism. Block autofill or pasting, and you fail unless another method exists.

Do one-time codes fail WCAG 3.3.8?

Only if the user is forced to transcribe them manually. It must be possible to paste the code or have the device fill it in. Six separate digit boxes that break paste are a classic failure. Device prompts, hardware keys and OS biometrics are not cognitive function tests at all.

General information, not legal advice.

From the same small team: Memory Quest, a free memory-training game for Android, on Google Play.

Sources