Repository navigation
feat(rules): scope a11y/paste-inputs to authentication fields and map it to WCAG 3.3.8 #2106 - #2178
Merged
Merged
Conversation
… it to WCAG 3.3.8 #2106 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
marked this pull request as ready for review
November 20, 2026 22:15
* origin/main: test(audit-engine): carriedCheckAsFailure keeps the continuation mark #2098 (#2166) fix(rules): correct zoom-disabled 1.4.4 wording, related criteria for wcagNone rules #2115 (#2174) refactor(cli): list bash completion flags one per line #2116 (#2175) feat(rules): waive a public Supabase table by bare name in security/supabase-rls #2103 (#2177) test(rules): every site rule emits a check on a clean site, with a shrinking baseline #1741 (#2179) feat(rules): report each 5xx page as its own crawl/server-errors finding #2130 (#2181) fix(rules): one finding per leaked field across json-sensitive-fields and auth-endpoint-disclosure, deduped by the runner #2083 (#2154) fix(cli): report --input keeps meta.partialAudit and publishes with it #2102 (#2153) fix(cli): local incremental re-audit counts carried findings in the full audit's check units (#2159) fix(crawler): cap stored entity refs and edges, skip corrupt refs rows #2135 (#2158) fix(crawler): a quick crawl fetches the start URL when a sitemap lists it past maxPages #2127 (#2157) fix(rules): security/exposed-actuator reads a 5xx through isUnverifiedReply, never part of a pass #2101 (#2151) fix(rules): hold large text to 3:1 in a11y/color-contrast #2105 (#2155) fix(cli): size the report list date column from rendered dates #2095 (#2152) Signed-off-by: Nik Cubrilovic <[email protected]>
* origin/main: fix(rules): links/anchor-mismatch false positives on translated stores #2092 (#2162) fix(rules): coded gap skips for input not fully checked, batch 2 rules #2134 (#2163) Signed-off-by: Nik Cubrilovic <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2106
Summary
a11y/paste-inputsnow reports paste blocking on authentication fields only, so it can carry WCAG 2.2 success criterion 3.3.8 Accessible Authentication (Minimum) instead ofwcagNone.<input type="password">, or any<input>/<textarea>whoseautocompleteincludescurrent-password,new-passwordorone-time-code(non-text input types such ashiddenandsubmitare skipped).onpasteblocking is reported. Paste, copy or cut blocking on any other field (a "confirm email" field, for example), and copy or cut blocking on a password field, is not reported. The rule page says so.meta.wcag = [wcag("3.3.8")](AA, WCAG 2.2), so--wcag-level AAnow keeps the rule. Severity, weight, check name and scopes are unchanged.password (type=password)orcode (autocomplete=one-time-code). Info message changes toNo password or one-time-code fields found(audit-engine golden regenerated; this changes the info check's pinned digest).changelog.d/2106-paste-inputs-auth-fields.changed.md.Design choice: the issue allowed narrowing or splitting. WCAG tags are per rule, not per check, so a split would need a new rule; the issue title asks to scope the rule, so this narrows it and stops reporting non-authentication fields.
Acceptance criteria
one-time-code,current-password,new-password) is reported and tagged 3.3.8:a11y-paste-inputs-2106.test.ts"a password field that blocks paste fails" and theautocomplete="%s"cases;a11y-wcag.test.ts"paste-inputs cites 3.3.8 Accessible Authentication (Minimum) at AA".docs/rules/a11y/paste-inputs.mdxWhat squirrel checks paragraph.packages/rules/tests/a11y-paste-inputs-2106.test.ts.bun scripts/rule-wcag.ts --writeregenerated the 3.3.8 table;make validatein docs passes.Gates
bun test packages/rules/tests/a11y-paste-inputs-2106.test.ts packages/rules/tests/a11y-wcag.test.ts: 26 pass, 0 failbun run scripts/test-suites.ts --run rules: 12528 pass, 24 todo, 0 failbun run scripts/test-suites.ts --run audit-engine: 2366 pass, 3 skip, 0 failbun run scripts/test-suites.ts --run rest: 3907 pass, 0 failmake validate(docs): all checks pass, 71 script tests passbun run scripts/test-suites.ts --check, rootformat:check, rootlint,packages/rulestypecheck: passbun scripts/changelog.ts check: OKAgent skill
No change needed to the squirrelscan agent skill: rule id, check name and options are unchanged.