CVE-2026-58399
HIGH@acastellon/auth has an authentication bypass via spoofable headers in validateToken()
Title source: cnaDescription
@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.
References (3)
Core 3
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/antonio-castellon/module-auth/security/advisories/GHSA-gfj5-979r-92pw
X_Refsource_Misc x_refsource_misc
https://github.com/antonio-castellon/module-auth/issues/6
X_Refsource_Misc x_refsource_misc
https://www.npmjs.com/package/@acastellon/auth/v/2.3.0
Scores
CVSS v4
8.7
EPSS
0.0054
EPSS Percentile
42.5%
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
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
total
Details
CWE
CWE-287
Status
published
Products (2)
acastellon/auth
0 - 2.3.0npm
antonio-castellon/module-auth
< 2.3.0
Published
Jul 01, 2026
Tracked Since
Jul 01, 2026