CVE-2019-15954
Description
Authenticated users with widgets privilege in Total.js CMS 12.0.0 can achieve remote code execution via server-side JavaScript evaluation.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Authenticated users with widgets privilege in Total.js CMS 12.0.0 can achieve remote code execution via server-side JavaScript evaluation.
Vulnerability
Overview
CVE-2019-15954 is a server-side code injection vulnerability in Total.js CMS version 12.0.0. The issue stems from the way the CMS processes widgets. An authenticated user who has been granted the 'widgets' privilege can create a malicious widget containing a specially crafted ` tag. When the backend evaluates this tag, it does so in a server-side context that allows JavaScript code execution. The attacker can escape the intended sandbox by using the payload global.process.mainModule.require(child_process).exec(RCE)`, enabling arbitrary command execution on the server. [1] [2]
Exploitation and
Impact
To exploit this vulnerability, an attacker must first have an authenticated session in the CMS and possess the 'widgets' privilege. No other special network access is required beyond being able to reach the application. The attacker creates a new widget and includes the malicious `` tag with the JavaScript payload. Once the widget is rendered or processed server-side, the injected code runs with the privileges of the Node.js process, leading to full remote code execution (RCE). [2] [4]
Mitigation
Users of Total.js CMS 12.0.0 are advised to upgrade to a patched version as soon as possible. As of the publication date, a fix has been issued by the vendor. No workarounds are documented for this specific vulnerability, and given its severity (RCE via authenticated low-privileged user), upgrading is strongly recommended. The vulnerability is not currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. [3]
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- Total.js/CMSdescription
- ghsa-coords
Patches
0No patches discovered yet.
Vulnerability mechanics
Root cause
"Server-side evaluation of `<script total>` widget tags does not properly sandbox the JavaScript execution context, allowing escape via Node.js globals to achieve command injection."
Attack vector
An authenticated user who holds the widgets privilege creates a new widget containing a `<script total>` tag with malicious JavaScript. The payload escapes the server-side sandbox by accessing `global.process.mainModule.require('child_process').exec(RCE)` [ref_id=1]. When the back-end evaluates the tag, the attacker-supplied JavaScript executes on the server, achieving Remote Command Execution [CWE-77].
Affected code
The vulnerability resides in the server-side tag evaluation engine of Total.js CMS 12.0.0. The back-end evaluates `<script total>` tags within widget content without properly sandboxing the JavaScript execution context [ref_id=1].
What the fix does
The advisory does not include a patch or specific remediation code [ref_id=1]. The recommended fix would involve properly sandboxing the JavaScript evaluation context so that `global.process.mainModule` is not accessible from within `<script total>` tags, and/or sanitizing or disallowing dangerous Node.js globals during server-side tag evaluation.
Preconditions
- authAttacker must be an authenticated user of Total.js CMS
- configAttacker must have the 'widgets' privilege assigned to their role
- inputAttacker must have access to the widget creation/editing interface
Generated on May 27, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-v287-9w3v-x5c5ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2019-15954ghsaADVISORY
- packetstormsecurity.com/files/154924/Total.js-CMS-12-Widget-JavaScript-Code-Injection.htmlghsax_refsource_MISCWEB
- github.com/beerpwn/CVE/blob/master/Totaljs_disclosure_report/report_final.pdfghsax_refsource_MISCWEB
- seclists.org/fulldisclosure/2019/Sep/5ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.