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.
Published: 2026-07-01
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a logic flaw in the validateToken() middleware of the @acastellon/auth module. The flaw permits bypass complete token validation by sending a request where the auth-user header equals "service‑brother" and the Host header starts with the service’s own hostname. the client, allowing the attacker to craft a request that skips the standard legacy, JWT, authentication is performed.

Affected Systems

The affected product is the antonio‑castellon:module‑auth package; all releases older than version 2.3.0 are vulnerable. No other products or service versions are cited in the advisory.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity. The EPSS score of less than 1% suggests a low likelihood of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog, implying no known widespread exploitation. Attackers can exploit the flaw remotely by issuing HTTP requests with spoofed auth-user and Host headers over any network path that reaches the vulnerable microservice, enabling unauthorized access to protected endpoints.

Generated by OpenCVE AI on July 15, 2026 at 22:19 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade antonio:module‑auth to version 2.3.0 or later.
  • If an upgrade cannot be performed immediately, configure upstream proxies or API gateways to strip or reject the auth‑user and Host headers on unauthenticated requests before they reach the module.
  • Deploy enforces the auth‑user header can only be set by trusted internal services or limits traffic to internal networks, preventing unauthorized header spoofing.

Generated by OpenCVE AI on July 15, 2026 at 22:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-gfj5-979r-92pw @acastellon/auth: Authentication bypass via spoofable headers in validateToken()
History

Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Antonio-castellon
Antonio-castellon module-auth
Vendors & Products Antonio-castellon
Antonio-castellon module-auth

Thu, 02 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 01 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
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.
Title @acastellon/auth has an authentication bypass via spoofable headers in validateToken()
Weaknesses CWE-287
References
Metrics cvssV4_0

{'score': 8.7, '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'}


Subscriptions

Antonio-castellon Module-auth
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-02T14:26:00.684Z

Reserved: 2026-06-30T18:19:58.378Z

Link: CVE-2026-58399

cve-icon Vulnrichment

Updated: 2026-07-02T14:25:57.146Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-15T22:30:06Z

Weaknesses