Vulnerabilities in pkg:npm/@haxtheweb/open-apis

PACKAGE
Advisory Identifier: GHSA-4fg7-f244-3j49
Advisory Summary

CVE-2026-46391 is a HIGH credential theft vulnerability (CWE-183: Permissive List of Allowed Inputs) affecting HAX open-apis libraries in the npm ecosystem. The issue involves credential theft via server-side request forgery (ssrf) in open-apis. Remediation is available by upgrading affected packages to version 26.0.0.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@haxtheweb/open-apis

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@haxtheweb/open-apis. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-4fg7-f244-3j49 CVE-2026-46391 HIGH HAX open-apis: Credential Theft via Server-Side Request Forgery (SSRF) in open-apis
GHSA-fvx2-x7ff-fc56 CVE-2025-48996 MODERATE Unauthenticated Disclosure of PSU HAX CMS Site Listings via haxPsuUsage API Endpoint

CVE-2026-46391 at a Glance

CVE Identifier CVE-2026-46391
GHSA Identifier GHSA-4fg7-f244-3j49
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-183: Permissive List of Allowed Inputs
Affected Product HAX open-apis
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-46391

To remediate this vulnerability, upgrade all affected HAX open-apis dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@haxtheweb/open-apis fixed: 26.0.0
npm install @haxtheweb/open-apis@26.0.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @haxtheweb/open-apis

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-46391, inspect your project dependencies using npm:

npm ls @haxtheweb/open-apis

Analyze the terminal output to locate any version of HAX open-apis in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 26.0.0), your application is affected.

Note: The npm ls @haxtheweb/open-apis command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-183: Permissive List of Allowed Inputs, where the product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are explicitly allowed by policy because the inputs are assumed to be safe, but the list is too permissive - that is, it allows an input that is unsafe, leading to resultant weaknesses. In HAX open-apis, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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](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. ### 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: <img width="3404" height="1656" alt="ssrf_cred_theft" src="https://github.com/user-attachments/assets/0a87cef5-3c4d-450a-8bb7-35123d5f621b" /> elmslnToSite.js: <img width="3409" height="1641" alt="theft2" src="https://github.com/user-attachments/assets/bede82cc-a613-4fc7-bbf6-76166af784f5" /> JOSHelpers.js: <img width="3407" height="1597" alt="theft3" src="https://github.com/user-attachments/assets/4f3f8bee-443e-4b22-9d41-eb9726619d36" /> ### 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.

CVE-2026-46391 Affected HAX open-apis Versions

1 component(s)
Fixed Versions:
26.0.0
Product / Package Ecosystem Affected Versions Fixed Version
@haxtheweb/open-apis
npm
< 26.0.0
26.0.0

References

Frequently Asked Questions

What is CVE-2026-46391?
CVE-2026-46391 is a security vulnerability in HAX open-apis involving Credential Theft via Server-Side Request Forgery (SSRF) in open-apis under CWE-183: Permissive List of Allowed Inputs.
Which HAX open-apis versions are affected?
Affected versions include releases prior to 26.0.0 across affected packages: @haxtheweb/open-apis.
What version fixes CVE-2026-46391?
Upgrading to 26.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @haxtheweb/open-apis affected?
Yes, @haxtheweb/open-apis is affected in releases prior to 26.0.0. Upgrade your dependency to 26.0.0 or later.
What CWE is associated with CVE-2026-46391?
CVE-2026-46391 is classified under CWE-183: Permissive List of Allowed Inputs (The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are explicitly allowed by policy because the inputs are assumed to be safe, but the list is too permissive - that is, it allows an input that is unsafe, leading to resultant weaknesses.).
How can I check npm dependencies for CVE-2026-46391?
Run the dependency tree command: 'npm ls @haxtheweb/open-apis'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4fg7-f244-3j49",
  "modified" : "2026-06-09T11:56:37Z",
  "published" : "2026-05-19T14:44:46Z",
  "aliases" : [ "CVE-2026-46391" ],
  "summary" : "HAX open-apis: Credential Theft via Server-Side Request Forgery (SSRF) in open-apis",
  "details" : "### 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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@haxtheweb/open-apis"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "26.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/haxtheweb/issues/security/advisories/GHSA-4fg7-f244-3j49"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-46391"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/haxtheweb/issues"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-183", "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-19T14:44:46Z",
    "nvd_published_at" : "2026-06-05T19:16:33Z"
  }
}