Npm · @Acastellon/Auth · CVE-2026-58399
**Name of the Vulnerable Software and Affected Versions**
@acastellon/auth versions prior to 2.3.0
**Description**
An authentication bypass exists in the `validateToken()` middleware. The issue stems from improper trust in spoofable request headers and flawed request flow control, which allows the `next()` function to be called before authentication checks are completed. Specifically, a service-to-service bypass is triggered when the `auth-user` header is set to `service-brother` and the `Host` header starts with the value returned by `getHostName()`. Since both the `auth-user` and `Host` headers are controlled by the client, a remote unauthenticated attacker can craft these headers to skip legacy, JWT, or OIDC token validation, potentially leading to unauthorized access, privilege escalation, and lateral movement.
**Recommendations**
Update to version 2.3.0.