{"id":"CVE-2026-46391","aliases":["CVE-2026-46391","GHSA-4fg7-f244-3j49"],"related":[],"kind":"vulnerability","state":"published","title":"HAX open-apis: Credential Theft via Server-Side Request Forgery (SSRF) in open-apis","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nMultiple 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.\n\n### Details\n[api/services/website/cacheAddress.js](https://github.com/haxtheweb/open-apis/blob/ff694ce91442c39ae1a78dc21e9ce50546aa207a/api/services/website/cacheAddress.js#L21), [api/apps/haxcms/lib/JOSHelpers.js](https://github.com/haxtheweb/open-apis/blob/ff694ce91442c39ae1a78dc21e9ce50546aa207a/api/apps/haxcms/lib/JOSHelpers.js#L26), and [api/apps/haxcms/convert/elmslnToSite.js](https://github.com/haxtheweb/open-apis/blob/ff694ce91442c39ae1a78dc21e9ce50546aa207a/api/apps/haxcms/convert/elmslnToSite.js#L37) 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.\n\n### PoC\nMaking 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.\n\ncacheAddress.js:\n<img width=\"3404\" height=\"1656\" alt=\"ssrf_cred_theft\" src=\"https://github.com/user-attachments/assets/0a87cef5-3c4d-450a-8bb7-35123d5f621b\" />\n\nelmslnToSite.js:\n<img width=\"3409\" height=\"1641\" alt=\"theft2\" src=\"https://github.com/user-attachments/assets/bede82cc-a613-4fc7-bbf6-76166af784f5\" />\n\nJOSHelpers.js:\n<img width=\"3407\" height=\"1597\" alt=\"theft3\" src=\"https://github.com/user-attachments/assets/4f3f8bee-443e-4b22-9d41-eb9726619d36\" />\n\n### Impact\nThis 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-05-19T14:44:46.000Z","modified":"2026-10-26T11:10:00.157Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-183","CWE-918"],"affected":[{"ranges":[{"version":">= 9.0.1, < 26.0.0","status":"affected"}],"vendor":"haxtheweb","product":"@haxtheweb/open-apis","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"26.0.0"}],"ecosystem":"npm","package":"@haxtheweb/open-apis","purl":"pkg:npm/%40haxtheweb/open-apis","source":"ghsa"}],"references":[{"url":"https://github.com/haxtheweb/issues/security/advisories/GHSA-4fg7-f244-3j49","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46391","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/haxtheweb/issues","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-06-08T16:18:05.580Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46391","url":"https://www.cve.org/CVERecord?id=CVE-2026-46391","licence":"CVE Terms of Use","modified":"2026-06-08T16:18:38.404Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4fg7-f244-3j49","url":"https://github.com/advisories/GHSA-4fg7-f244-3j49","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:45.404Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46391","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46391","licence":"Public domain","modified":"2026-10-26T11:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:23.898Z","epss":{"score":0.00457,"percentile":0.4138,"date":"2026-12-01T12:00:22.000Z"}}