Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-112039 Overview
CVE-2026-112039 is a cross-site scripting (XSS) vulnerability in the diem-project diem content management framework, affecting the codebase up to commit 116974edfb9a5b8bd69cb13586dc62bcdbb485ad. The flaw resides in the append function of dmAdminPlugin/modules/dmConsole/actions/actions.class.php, part of the Administrative Console component. Attackers manipulate the dm_command argument to inject script content that executes in a browser context. The exploit has been published, and the project uses a rolling release model, so no fixed version identifier is available. The project maintainers have not responded to the issue report at the time of publication.
Critical Impact
Authenticated attackers can inject script into the Diem Administrative Console, enabling session-context script execution against administrators who interact with crafted input.
Affected Products
- diem-project diem up to commit 116974edfb9a5b8bd69cb13586dc62bcdbb485ad
- Component: Administrative Console (dmAdminPlugin/modules/dmConsole)
- File: dmAdminPlugin/modules/dmConsole/actions/actions.class.php
Discovery Timeline
- 2026-10-19 - CVE-2026-112039 published to the National Vulnerability Database
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-112039
Vulnerability Analysis
The vulnerability is a reflected or stored cross-site scripting flaw [CWE-79] in the Diem Administrative Console. The append action handler in actions.class.php processes the dm_command parameter without adequate output encoding or input sanitization. When an attacker-supplied value is reflected into the rendered administrative page, the browser interprets injected HTML or JavaScript as executable content. The attack is network-reachable and requires high privileges plus user interaction to trigger, which limits impact to confidentiality and integrity of the administrative session.
Root Cause
The root cause is missing contextual output encoding on the dm_command request argument inside the append function. The application passes attacker-controlled input into HTML output without escaping characters such as <, >, ", and '. Diem is a Symfony-based PHP framework, and the Administrative Console relies on this handler to echo command state back to the UI, which is where the injection surfaces.
Attack Vector
An authenticated administrative user crafts a request to the console endpoint that invokes the append action with a malicious dm_command value. When the response renders in a browser, the injected payload executes under the origin of the Diem console. The attacker can hijack session tokens, perform console actions on behalf of the victim, or pivot to further administrative abuse. The exploit requires user interaction and high-privilege context, which constrains broad exploitation but does not eliminate it. Public exploit details are available through the VulDB entry for CVE-2026-112039.
Detection Methods for CVE-2026-112039
Indicators of Compromise
- HTTP requests to the Diem Administrative Console containing dm_command parameter values with HTML or JavaScript syntax such as <script, onerror=, or javascript:.
- Web server access logs showing POST or GET requests to dmConsole action endpoints with URL-encoded script payloads.
- Browser console errors or unexpected outbound requests originating from authenticated administrator sessions on the Diem console.
Detection Strategies
- Deploy web application firewall (WAF) rules that flag reflected script syntax in requests targeting dmAdminPlugin/modules/dmConsole routes.
- Correlate authenticated administrator sessions with anomalous dm_command parameter content in HTTP request logs.
- Review browser Content Security Policy (CSP) violation reports for inline script execution on administrative pages.
Monitoring Recommendations
- Forward web server access and application logs to a centralized analytics platform to query parameter patterns across the console endpoint.
- Monitor for new administrative user creation, permission changes, or configuration edits following suspicious dm_command requests.
- Alert on session cookie exfiltration patterns, including outbound requests from administrator browsers to unknown domains shortly after console use.
How to Mitigate CVE-2026-112039
Immediate Actions Required
- Restrict access to the Diem Administrative Console to trusted networks using IP allowlisting or VPN gating.
- Audit administrative accounts and rotate session secrets to invalidate any potentially hijacked sessions.
- Deploy a strict Content Security Policy on the console origin to block inline script execution.
Patch Information
No vendor patch is available at the time of publication. The project uses a rolling release model, and the maintainers have not responded to the issue report tracked at Diem Project Issue #456. Monitor the Diem Project GitHub repository for upstream commits that add output encoding to the append handler.
Workarounds
- Apply a local patch to dmAdminPlugin/modules/dmConsole/actions/actions.class.php that passes dm_command through an HTML-encoding function such as htmlspecialchars($value, ENT_QUOTES | ENT_HTML5, 'UTF-8') before rendering.
- Add a reverse proxy rule that rejects requests to the console endpoint where dm_command contains angle brackets or javascript: prefixes.
- Enforce short administrative session lifetimes and require re-authentication for sensitive console actions until an upstream fix is published.
# Example nginx rule to block script-like dm_command values
location ~* /dmConsole/ {
if ($arg_dm_command ~* "(<script|onerror=|javascript:)") {
return 403;
}
proxy_pass http://diem_backend;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

