{"id":"CVE-2026-58399","published":"2026-07-01T14:25:44Z","modified":"2026-07-02T14:26:00Z","title":"@acastellon/auth has an authentication bypass via spoofable headers in validateToken()","vendor":"antonio-castellon","product":"module-auth","tier":"tail","description":{"text":"@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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00973,"percentile":0.60732,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/antonio-castellon/module-auth/security/advisories/GHSA-gfj5-979r-92pw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/antonio-castellon/module-auth/issues/6","tags":["x_refsource_MISC"]},{"url":"https://www.npmjs.com/package/@acastellon/auth/v/2.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":12.15},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"antonio-castellon","affectedVersions":[{"vendor":"antonio-castellon","product":"module-auth","versions":["< 2.3.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-02T14:25:47.187429Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@acastellon/auth","vulnerableRanges":["<2.3.0"],"patched":["2.3.0"],"from":["GHSA-gfj5-979r-92pw"],"provenance":"source"}],"summary":{"text":"@acastellon/auth (product module-auth, by antonio-castellon) contains an authentication flaw in its validateToken() middleware, where the service-to-service bypass check relies on the client-controlled auth-user header and Host header, and this affects versions prior to 2.3.0. A remote, unauthenticated attacker with network access to the service can send a request with crafted auth-user and Host headers to skip token validation, requiring no credentials, no user interaction, and no special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:27Z"},"euvd":{"id":"EUVD-2026-41013","exploited":false,"provenance":"source"}}