๐Ÿ” CVE Alert

CVE-2026-58399

UNKNOWN 0.0

@acastellon/auth has an authentication bypass via spoofable headers in validateToken()

CVSS Score
0.0
EPSS Score
0.0%
EPSS Percentile
0th

@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.

CWE CWE-287
Vendor antonio-castellon
Product module-auth
Published Jul 1, 2026
Stay Ahead of the Next One

Get instant alerts for antonio-castellon module-auth

Be the first to know when new unknown vulnerabilities affecting antonio-castellon module-auth are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

Affected Versions

antonio-castellon / module-auth
< 2.3.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/antonio-castellon/module-auth/security/advisories/GHSA-gfj5-979r-92pw github.com: https://github.com/antonio-castellon/module-auth/issues/6 npmjs.com: https://www.npmjs.com/package/@acastellon/auth/v/2.3.0