CVE-2026-46391
JSON

8.7high

HAX open-apis: Credential Theft via Server-Side Request Forgery (SSRF) in open-apis

Severity
8.7high CVSS:4.0 by GitHub_M
Exploit likelihood
0.46% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-4fg7-f244-3j49

Description

HAX CMS helps manage microsite universe with PHP or NodeJs backends. Starting in version 9.0.1 and prior to version 26.0.0 of @haxtheweb/open-apis, multiple functions conduct substring-only matching to validate hostnames to which basic authorization should be sent. An attacker can append the matched substrings to an attacker-controlled endpoint and capture authentication. Version 26.0.0 fixes the issue.

Affected

Product or packageVersionsReported by
haxtheweb @haxtheweb/open-apis>= 9.0.1, < 26.0.0CVE List
@haxtheweb/open-apis (npm)before 26.0.0GitHub Advisory Database

All scores

GitHub_M8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N

Classification

CWE-183CWE-918

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

HAX CMS helps manage microsite universe with PHP or NodeJs backends. Starting in version 9.0.1 and prior to version 26.0.0 of @haxtheweb/open-apis, multiple functions conduct substring-only matching to validate hostnames to which basic authorization should be sent. An attacker can append the matched substrings to an attacker-controlled endpoint and capture authentication. Version 26.0.0 fixes the issue.

GitHub Advisory Database
Summary

Multiple functions conduct substring-only matching to validate hostnames to which basic authorization should be sent. An attacker can append the matched substrings to an attacker-controlled endpoint and capture authentication.

Details

api/services/website/cacheAddress.js, api/apps/haxcms/lib/JOSHelpers.js, and api/apps/haxcms/convert/elmslnToSite.js use similar logic to check for hard-coded site names. However, the logic only looks for the substring to be included in the user-controlled string, allowing an attacker to craft an API call and extract the credentials intended for the hard-coded domains.

PoC

Making API calls to an affected endpoint will result in credential theft. The attacker-controlled domains in these proofs of concept are cloudflared tunnels, protecting the production credentials from unencrypted exposure.

cacheAddress.js: ssrf_cred_theft

elmslnToSite.js: theft2

JOSHelpers.js: theft3

Impact

This vulnerability allows internal data, including secrets, to be exfiltrated to an attacker-controlled domain. Credentials were confirmed with the maintainer to grant access to unreleased LMS content on subsequent systems; out of scope for PoC.

NVD (es)

HAX CMS ayuda a gestionar el universo de micrositios con backends de PHP o NodeJs. A partir de la versión 9.0.1 y anterior a la versión 26.0.0 de @haxtheweb/open-apis, múltiples funciones realizan una coincidencia solo de subcadenas para validar nombres de host a los que se debe enviar la autorización básica. Un atacante puede añadir las subcadenas coincidentes a un endpoint controlado por el atacante y capturar la autenticación. La versión 26.0.0 corrige el problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-46391 changed 2026-06-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-4fg7-f244-3j49 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-46391 changed 2026-10-26Public domain