Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-21335
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:37 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-21335
Complete source record
{
"id": "3217fae012ccc36835b5350f4008fde76423623674e32c2c689813a59959c00e",
"url": "https://osv.dev/vulnerability/CVE-2021-21335",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-21335",
"summary": "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.",
"evidence": "osv:CVE-2021-21335",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-21335",
"aliases": [
"CVE-2021-21335",
"GHSA-ww8q-72rx-hc54"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/stnoonan/spnego-http-auth-nginx-module",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "a06f9efca373e25328b1c53639a48decd0854570"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:spnego_http_authentication_module_project:spnego_http_authentication_module:*:*:*:*:*:nginx:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.1.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "a06f9efca373e25328b1c53639a48decd0854570"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "a06f9efca373e25328b1c53639a48decd0854570"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v1.1.1"
}
]
}
}
],
"versions": [
"v1.1.0",
"v1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21335.json",
"vanir_signatures": [
{
"id": "CVE-2021-21335-96db8614",
"digest": {
"length": 3010,
"function_hash": "72009278362700319588796017657292650017"
},
"source": "https://github.com/stnoonan/spnego-http-auth-nginx-module/commit/a06f9efca373e25328b1c53639a48decd0854570",
"target": {
"file": "ngx_http_auth_spnego_module.c",
"function": "ngx_http_auth_spnego_handler"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2021-21335-e3d42e4c",
"digest": {
"threshold": 0.9,
"line_hashes": [
"184303827427714694529644895348184658594",
"339901842394811731769551324700142596822",
"77201998263918464123882835720729499067",
"319109234672289250995724412850191116713"
]
},
"source": "https://github.com/stnoonan/spnego-http-auth-nginx-module/commit/a06f9efca373e25328b1c53639a48decd0854570",
"target": {
"file": "ngx_http_auth_spnego_module.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:02:35Z"
}
}
],
"modified": "2026-10-20T14:02:35.404965760Z",
"provider": "osv",
"references": [
"https://github.com/stnoonan/spnego-http-auth-nginx-module/releases/tag/v1.1.1",
"https://github.com/stnoonan/spnego-http-auth-nginx-module/commit/a06f9efca373e25328b1c53639a48decd0854570",
"https://github.com/stnoonan/spnego-http-auth-nginx-module/security/advisories/GHSA-ww8q-72rx-hc54"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-21335",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388517,
"published_at": "2021-03-08T21:15:16.573+00:00"
}