# CVE-2021-21335: Basic Authentication can be bypassed using a malformed username

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.68%, higher than 77% of CVEs (2026-12-01)
- Published: 2021-03-08T20:20:19.000Z
- Modified: 2026-06-17T03:35:19.350Z
- Weaknesses: CWE-287
- Assigned by: GitHub_M

## Description

In the SPNEGO HTTP Authentication Module for nginx (spnego-http-auth-nginx-module) before version 1.1.1 basic Authentication can be bypassed using a malformed username. This affects users of spnego-http-auth-nginx-module that have enabled basic authentication. This is fixed in version 1.1.1 of spnego-http-auth-nginx-module. As a workaround, one may disable basic authentication.

(As written by CVE List.)

## Affected

- stnoonan spnego-http-auth-nginx-module: < 1.1.1
- spnego_http_authentication_module_project spnego_http_authentication_module: before 1.1.1

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/stnoonan/spnego-http-auth-nginx-module/security/advisories/GHSA-ww8q-72rx-hc54> (patch, third-party-advisory)
- <https://github.com/stnoonan/spnego-http-auth-nginx-module/commit/a06f9efca373e25328b1c53639a48decd0854570> (patch, third-party-advisory)
- <https://github.com/stnoonan/spnego-http-auth-nginx-module/releases/tag/v1.1.1> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-21335](https://www.cve.org/CVERecord?id=CVE-2021-21335), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-21335](https://nvd.nist.gov/vuln/detail/CVE-2021-21335), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21335 · Whole record: https://cve.day/CVE-2021-21335.json · Rebuilt by cve.day 2026-11-25T22:58:00.177Z
