Vulnerabilities in pkg:npm/@haxtheweb/open-apis
PACKAGECVE-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.
pkg:npm/@haxtheweb/open-apis
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
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.
npm install @haxtheweb/open-apis@26.0.0
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
CVE-2026-46391 Affected HAX open-apis Versions
1 component(s)| 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?
Which HAX open-apis versions are affected?
What version fixes CVE-2026-46391?
Is @haxtheweb/open-apis affected?
What CWE is associated with CVE-2026-46391?
How can I check npm dependencies for CVE-2026-46391?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}