Skip to main content

@acastellon/auth CVE-2026-58399

| EUVDEUVD-2026-41013 HIGH
Improper Authentication (CWE-287)
2026-07-01 GitHub_M GHSA-gfj5-979r-92pw
8.7
CVSS 4.0 · Vendor: GitHub_M
Share

Severity by source

Vendor (GitHub_M) PRIMARY
8.7 HIGH
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
7.5 HIGH

Fully remote header spoofing with no auth or interaction gives AV:N/AC:L/PR:N/UI:N; the core impact is forged identity/trust so I:H, with C:N/A:N per the reported scope.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

2
Patch available
Jul 01, 2026 - 16:01 EUVD
Analysis Generated
Jul 01, 2026 - 14:52 vuln.today

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 3 npm packages depend on @acastellon/auth (2 direct, 1 indirect)

Ecosystem-wide dependent count for version 2.3.0.

DescriptionCVE.org

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

AnalysisAI

Authentication bypass in @acastellon/auth (npm package, aka antonio-castellon/module-auth) before 2.3.0 lets a remote unauthenticated attacker impersonate a trusted internal service by sending spoofed 'auth-user' and 'Host' request headers. The validateToken() middleware short-circuits its own token check when auth-user equals 'service-brother' and the Host header starts with the configured hostname - both fully client-controllable - so an attacker skips legacy/JWT/OIDC validation entirely. …

Unlock full vulnerability intelligence

  • Risk assessment & exploitation conditions
  • Attack chain visualization
  • Remediation with exact patch versions
  • Threat intelligence from 22 sources
  • Personal watchlist & email alerts

Free forever · No credit card required

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata

Access
Reach middleware-protected endpoint
Delivery
Craft Host header matching service hostname
Exploit
Add spoofed auth-user: service-brother header
Execution
validateToken() takes trust fast-path
Persist
Bypass JWT/OIDC validation
Impact
Act as trusted internal service

Vulnerability AssessmentAI

Exploitation Exploitable when the target application uses @acastellon/auth's validateToken() middleware, which contains the service-to-service bypass for auth-user: service-brother gated on req.get('host').startsWith(getHostName()). … Additional conditions and limiting factors are described in the full assessment.
Risk Assessment The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N) is internally consistent with the description: fully remote, low complexity, no privileges, no user interaction, high integrity impact (identity/trust forgery) and no confidentiality or availability impact as scored by the reporter. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in.
Exploit Scenario An attacker who can reach a microservice protected by this middleware sends an HTTP request with the header auth-user: service-brother and a Host header beginning with the service's configured hostname; validateToken() takes the trust fast-path and authorizes the request without any token, granting the attacker the privileges of the internal 'service-brother' identity. No POC is publicly identified, but the attack requires only header manipulation with tools like curl, so complexity is low.
Remediation Vendor-released patch: 2.3.0 - upgrade the dependency to @acastellon/auth 2.3.0 or later (npm install @acastellon/auth@^2.3.0, then rebuild and redeploy affected microservices) as the primary fix, per advisory GHSA-gfj5-979r-92pw (https://github.com/antonio-castellon/module-auth/security/advisories/GHSA-gfj5-979r-92pw). … Detailed patch versions, workarounds, and compensating controls in full report.

Recommended ActionAI

24 hours: Inventory all applications and services using @acastellon/auth npm package and document versions in use; assess production exposure. …

Sign in for detailed remediation steps and compensating controls.

Threat intelligence, references, and detailed analysis are available after sign-in.

Share

CVE-2026-58399 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy