{"id":"CVE-2026-58399","revision":"167c7352cd004f79ad8c35f8540ea438","records":[{"revision":"167c7352cd004f79ad8c35f8540ea438","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-58399","aliases":[],"title":"@acastellon/auth has an authentication bypass via spoofable headers in validateToken()","description":"@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.","state":0,"publishedAt":"2026-07-01T14:25:44.452+00:00","modifiedAt":"2026-07-02T14:26:00.684+00:00","affected":[{"ecosystem":"Vendor product","name":"module-auth","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"antonio-castellon\",\n                    \"product\": \"module-auth\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 2.3.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":8.7,"severity":"HIGH"}],"references":["https://github.com/antonio-castellon/module-auth/security/advisories/GHSA-gfj5-979r-92pw","https://github.com/antonio-castellon/module-auth/issues/6","https://www.npmjs.com/package/@acastellon/auth/v/2.3.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-58399","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-58399","identifiers":["CVE-2026-58399"]},"retained":false,"historicalAffected":[]}],"coverage":[]}