CVE-2026-58399
HIGH 8.7CVSS 4.0@acastellon/auth: Authentication bypass via spoofable headers in validateToken()
@acastellon/auth is an authentication control system for microservices. Versions prior to 2.3.0 appear to allow an unauthenticated authentication bypass in validateToken() through spoofable auth-user and Host request headers. The validateToken middleware contains a service-to-service bypass for auth-user: service-brother when req.get('host').startsWith(getHostName()). Both values involved in the check can be influenced by an unauthenticated HTTP client: auth-user is a request header, and Host is also client-controlled. As a result, a remote unauthenticated attacker can send a request with crafted headers and bypass token validation before the normal legacy/JWT/OIDC validation logic runs. A fix has been implemented in v2.3.0.
- Published
- 1 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-287CWE-290
- Also known as
- GHSA-gfj5-979r-92pw
- Sources
- NVDJSONOSV GHSA-gfj5-979r-92pwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | @acastellon/auth | < 2.3.0 | 2.3.0 |
References
- https://github.com/antonio-castellon/module-auth/issues/6 · WEB
- https://github.com/antonio-castellon/module-auth/security/advisories/GHSA-gfj5-979r-92pw · WEB
- https://www.npmjs.com/package/@acastellon/auth/v/2.3.0 · WEB
- https://github.com/antonio-castellon/module-auth · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 1 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Jun 2026)