WCAG Encyclopedia

3.3.8 · UnderstandableLevel AANew in 2.2

Accessible Authentication (Minimum)

Signing in must not depend on a cognitive function test — remembering a password, transcribing a code, solving a puzzle — unless there is an alternative, a mechanism to help, or the test is recognising an object or a photo you provided. New in WCAG 2.2, and this is the one that outlaws blocking paste into password fields.

Principle
Understandable
Guideline
3.3
Level
AA
In WCAG since
2.2
Number
3.3.8

Broken, then fixed

The same interface twice: first with the mistake, then with the smallest change that fixes it.

Broken: A puzzle, and paste disabled.
PasswordSelect every square with a bus

Blocking paste breaks password managers, which is the mechanism that made the memory test survivable. The image puzzle is a second cognitive test on top.

Fixed: Paste allowed, and a route that tests nothing.
PasswordPaste and autofill work · or sign in with a passkey · or email me a link

Allowing paste is the single highest-value change and costs one deleted event handler. Passkeys and emailed links remove the memory test altogether.

What changed in the code

The fix as a diff: removed lines are marked with a minus, added lines with a plus.

Markup diff — signin.js
removed: password.addEventListener('paste', (e) => e.preventDefault());
added: // Password managers are the accommodation. Do not block them.

Deleting this line is a net security gain too — blocking paste pushes people towards passwords short enough to type from memory.

How to test

Check your own interface against 3.3.8, one step at a time.

  1. Find every way to sign in, including any extra step such as a one-time code, a security question or a CAPTCHA, and any request to sign in again before a sensitive action.
  2. Paste a password from the clipboard into the password field. Check that the paste works and that a password manager can fill the field.
  3. If the site sends a one-time code, check that you can paste it or that it fills in by itself, rather than having to type it from another screen.
  4. For each puzzle or CAPTCHA, check that there is another way through with no puzzle, or that the test only asks you to recognise objects or pick content you gave the site yourself.
  5. Open your browser’s DevTools and inspect the sign-in fields. Check that they have labels and autocomplete="username" and autocomplete="current-password", so password managers recognise them.

Common questions

Does blocking paste in a password field fail 3.3.8?

Yes, unless there is another way to sign in. Blocking paste makes people type the password from memory or copy it out character by character, which is the kind of memory test 3.3.8 is there to remove.

Are one-time codes sent by text message allowed under 3.3.8?

Only when the code can be pasted or fills in by itself. A code the reader has to copy by hand from their phone into the form fails.

Is an image CAPTCHA allowed under 3.3.8?

Only when it asks the reader to recognise objects, such as picking the photos with cars in, or to pick content they gave the site, or when there is another way through. 3.3.9 Accessible Authentication (Enhanced) allows neither of the first two.

Try it yourself

A lab is a small working piece of interface that you change yourself. Read its steps, use the controls under it, and watch the verdict line at the bottom: it says whether the criterion passes or fails as you go. Reset puts it back.

Try it: sign in without a test

How to use this lab

  1. Goal. Sign in without having to remember, transcribe or solve anything.
  2. The controls. The options under “Signing in asks for” set what the mock sign-in asks of you: A picture puzzle, A password, paste blocked, A password, paste allowed, or A passkey or emailed link. The Fill from a password manager button tries to fill the sign-in for you.
  3. Try this. The lab starts on A password, paste blocked. Press Fill from a password manager and see the field stay empty. Then try A picture puzzle, A password, paste allowed and A passkey or emailed link in turn.
  4. What it means. With A password, paste allowed or A passkey or emailed link, 3.3.8 passes: a password manager or the device does the remembering. With A picture puzzle or A password, paste blocked, 3.3.8 fails, because people with memory, reading or thinking difficulties are set a test they may not pass. The verdict line under the lab says which.
Signing in asks for
Type the password from memory. Paste is blocked, so a password manager cannot fill it.

3.3.8 fails

Also in guideline 3.3

Criteria in the same guideline often fail together.