Accessibility and Security Overlap in Site Audits

Accessibility and Security Overlap in Site Audits

Accessibility and security overlap in site audits more than most teams expect, and auditing the two separately often means one team’s fix breaks the other team’s work. For web developers, QA leads, and security auditors, putting both reviews into one pass saves time and finds a group of bugs that neither checklist catches alone. This article covers where the two disciplines meet, where they appear to conflict, and how to run one audit that satisfies both WCAG 2.2 and a solid web application security baseline.

The timing is practical. The European Accessibility Act has applied to many consumer-facing digital services since 28 June 2025, and NIS2 has raised the security bar for many of the same organisations. A team that does two separate audits a year ends up paying twice for findings that touch the same login form.

Where Accessibility and Security Overlap in Practice

The overlap sits mostly in authentication, forms, sessions, and third-party scripts. These are the places where users prove who they are, enter data, and run code you didn’t write. Security auditors spend most of their time there for that reason, and accessibility auditors find most of their blocking issues in the same places.

Authentication is the clearest example. WCAG 2.2 success criterion 3.3.8, Accessible Authentication (Minimum), says a login step must not depend on a cognitive function test such as remembering or transcribing a code, unless there is an alternative or a mechanism that helps. In practice that means allowing paste into password fields and supporting password managers. NIST SP 800-63B says the same thing from the security side: verifiers should allow paste so users can use long, unique passwords. The two standards agree, yet login forms that block paste with an onpaste handler are still common.

The autocomplete attribute is another shared point. SC 1.3.5 asks for input purpose to be machine-readable, so autocomplete=”current-password”, autocomplete=”new-password”, and autocomplete=”one-time-code” help both assistive technology and password managers. Setting autocomplete=”off” on credential fields, which is still a habit left over from older security checklists, weakens both.

The Myth That Accessibility Weakens Security

A common belief is that accessible sites are easier to attack. The thinking goes that clearer error messages, longer timeouts, and fewer CAPTCHAs mean more help for attackers. The belief is mostly wrong, and where it has some truth, WCAG already allows for it.

Take error messages. SC 3.3.3, Error Suggestion, asks you to tell users how to fix input errors, but it includes an exception for cases where the suggestion would jeopardise the security or purpose of the content. “Email address is missing the @ symbol” is fine. “No account exists for this email” is user enumeration, and WCAG does not require it. A login failure can still say “Email or password is incorrect”, as long as that message is announced through an aria-live region or by moving focus to it, and not shown only as red text.

Session timeouts follow the same logic. SC 2.2.1, Timing Adjustable, asks you to warn users before a timeout and give them at least 20 seconds to extend it. A banking session can keep a 10-minute idle timeout. It just needs an accessible warning dialog. Real-time exceptions exist as well, for example auctions or timed exams where extending the time would invalidate the activity.

A Realistic Audit Scenario

Here is a pattern auditors run into regularly. A mid-sized online shop sees credential stuffing against its login endpoint. Over two weeks, the team adds a WAF bot rule, an image CAPTCHA, and a hidden honeypot field to the registration form. Failed logins drop by about 90%.

Three weeks later, support tickets from screen reader users start coming in. The honeypot was hidden with CSS but was still exposed in the accessibility tree, so NVDA and JAWS users found an empty field labelled “Website”, filled it in, and were silently rejected as bots. The image CAPTCHA had no audio alternative. Both controls were reasonable on their own, and both failed because nobody tested them with assistive technology.

The fix took about two days. The honeypot got aria-hidden=”true”, tabindex=”-1″, and autocomplete=”off” (this is the one field where turning it off is correct). The image CAPTCHA was replaced with a non-interactive challenge such as Cloudflare Turnstile, backed by rate limiting. Security stayed at the same level and the accessibility barrier went away.

Running a Combined Accessibility and Security Audit

An experienced auditor does not merge the two checklists line by line. They start with the user flows that carry the most risk and test each flow through both lenses at once. Sign-up, login, password reset, checkout, and contact forms cover most of the shared issues. A broader security posture audit can then handle the rest of the attack surface.

A workable sequence looks like this:

  • Map every form and authentication step, and note each control on it: CAPTCHA, MFA, rate limit, honeypot, timeout.
  • Complete each flow using only the keyboard, then with NVDA or VoiceOver, and record where a security control blocks progress.
  • Check error handling for enumeration leaks and for accessible announcement in the same test.
  • Inventory third-party scripts, including consent banners, chat widgets, and accessibility overlays, and review their integrity and CSP coverage.
  • Run automated vulnerability scanning and an axe-core or Lighthouse pass, then compare the two sets of findings by URL.

That last step matters more than it seems. When an XSS finding and a missing-label finding appear on the same template, they usually come from the same root cause: hand-built form markup that skipped the framework’s standard components.

Third-Party Scripts Serve Both Disciplines

Accessibility overlay widgets are a good example of the overlap going wrong. They inject JavaScript with full DOM access into every page and often sit outside the Content Security Policy review. From a security point of view, that makes them a supply-chain dependency with the same reach as a payment script. From an accessibility point of view, they rarely fix underlying markup problems. In 2025 the US FTC finalised a $1 million order against overlay vendor accessiBe over its marketing claims.

Consent banners raise similar questions. A banner that traps keyboard focus, or loads trackers before the user agrees, fails both accessibility and GDPR compliance. Review cookie consent and tracking script compliance together with the banner’s keyboard behaviour, not separately.

Links that open new windows are a smaller overlap. WCAG techniques recommend telling users when a link opens a new tab, and the security concern is tab-nabbing through window.opener. Modern browsers have defaulted to noopener for target=”_blank” since roughly 2021 (Chrome 88, Firefox 79), but older embedded webviews and explicit window.open calls still need rel=”noopener”.

Common Mistakes Auditors Make

The first mistake is adding security controls in response to an incident without testing them with assistive technology. Emergency changes such as a new CAPTCHA, a stricter WAF rule, or a forced MFA method tend to stay in place for years, and nobody goes back to check them.

The second is trusting automated accessibility scores as proof of security-sensitive flows working. A Lighthouse score of 100 says nothing about whether a screen reader user can complete SMS-based MFA before the 60-second code expires.

The third is the reverse: treating aria-hidden or visually hidden content as harmless. Hidden admin links, debug fields, or leftover form inputs exposed in the accessibility tree have shown up in real audits, and screen readers will read them aloud.

Small teams with fewer than 10 people do not need a formal joint process. A single tester who checks login and checkout with a keyboard and a screen reader once per release covers most of the risk.

FAQ

Does WCAG require removing CAPTCHA entirely?
No. WCAG requires an alternative form of CAPTCHA for different senses, plus an alternative for cognitive tests at the authentication step. Invisible or non-interactive challenges combined with rate limiting meet both requirements.

Can strict security headers break accessibility?
Rarely, if they are configured carefully. A tight CSP can block a third-party accessibility widget, which is usually a sign that the widget needs a proper review anyway. Native browser and OS assistive technology is not affected by CSP.

How often should a combined audit run?
Run automated scans continuously and do a manual joint review of authentication and checkout flows at least once per major release, or every 6 months at minimum.

Bringing Both Checklists Together

Accessibility and security conflict far less than their checklists suggest. Most apparent conflicts disappear when you read the exceptions in WCAG and the guidance in NIST SP 800-63B side by side. The real issues come from controls added without testing, scripts nobody reviewed, and content that is visually hidden but still exposed to assistive technology. Before the next release, test the login form with a keyboard, a screen reader, and a password manager. That one check catches the most common problems from both lists.