GHSA-4fg7-f244-3j49

Suggest an improvement
Source
https://github.com/advisories/GHSA-4fg7-f244-3j49
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-4fg7-f244-3j49/GHSA-4fg7-f244-3j49.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4fg7-f244-3j49
Aliases
  • CVE-2026-46391
Published
2026-05-19T14:44:46Z
Modified
2026-09-10T03:50:45Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
HAX open-apis: Credential Theft via Server-Side Request Forgery (SSRF) in open-apis
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-183",
        "CWE-918"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-05-19T14:44:46Z",
    "nvd_published_at":  "2026-06-05T19:16:33Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / @haxtheweb/open-apis

Package

Name
@haxtheweb/open-apis
View open source insights on deps.dev
Purl
pkg:npm/%40haxtheweb/open-apis

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
26.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-4fg7-f244-3j49/GHSA-4fg7-f244-3j49.json"