{"answers":{"affected":"2 open source packages ship an affected version, including @acastellon/auth.","exploited":"There is no known exploitation of CVE-2026-58399 in the wild and no public exploit code.","fix":"Upgrade @acastellon/auth to 2.3.0 or later.","what":"CVE-2026-58399 is a high-severity authentication bypass vulnerability in antonio-castellon module-auth, published on 1 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-58399 and fix it if it is affected.\n\nWhat it is: CVE-2026-58399 is a high-severity authentication bypass vulnerability in antonio-castellon module-auth, published on 1 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-58399 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @acastellon/auth (npm): affected all versions; fixed in 2.3.0\n- @acastellon/auth (npm): affected all versions; fixed in 2.3.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-58399/ (Markdown: https://insights.sbomify.com/CVE-2026-58399/index.md)","id":"CVE-2026-58399","markdown":"https://insights.sbomify.com/CVE-2026-58399/index.md","name":"CVE-2026-58399","record":{"aliases":["GHSA-gfj5-979r-92pw"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js authentication library","requires_auth":"none","summary":"An unauthenticated attacker can bypass token validation in @acastellon/auth by spoofing auth-user and Host headers, gaining unauthorized access to protected microservices.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"@acastellon/auth has an authentication bypass via spoofable headers in validateToken()","id":"CVE-2026-58399","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"GeoNetwork vulnerable to Remote Code Execution via unsafe Saxon XSLT processor configuration in formatter","id":"CVE-2026-58400"},"packages":[{"ecosystem":"npm","fixed":["2.3.0"],"introduced":["0"],"last_affected":[],"package":"@acastellon/auth","purl":null,"source":"GHSA-gfj5-979r-92pw"},{"ecosystem":"npm","fixed":["2.3.0"],"introduced":["0"],"last_affected":[],"package":"@acastellon/auth","purl":"pkg:npm/%40acastellon/auth","source":"GHSA-gfj5-979r-92pw"}],"prev":{"headline":"OPNsense: XPath injection in MVC safe-delete","id":"CVE-2026-58395"},"products":["module-auth"],"published":"2026-07-01","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-02","vendors":["antonio-castellon"]},"summary":"An unauthenticated attacker can bypass token validation in @acastellon/auth by spoofing auth-user and Host headers, gaining unauthorized access to protected microservices.","url":"https://insights.sbomify.com/CVE-2026-58399/"}