Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate with low-privilege account
-
DeliveryCraft HTML message with JavaScript payload
-
ExploitSend broadcast message to users
-
InstallVictim opens malicious message
-
C2Injected script executes in victim browser
-
ExecuteSteal session cookies via XHR
-
ImpactHijack victim session for data access
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 authenticated user account in Totara LMS v19.1.5 and earlier with messaging capability. Attacker sends crafted HTML-injected message to users. Victim must open/view the message in their browser, triggering malicious code execution for session hijacking or command execution. |
| Impact | While the CVSS 8.0 (High) score suggests significant severity due to high confidentiality, integrity, and availability impact, real-world risk indicators present a more nuanced picture. The attack vector is network-based with low complexity (AV:N/AC:L), but requires both authentication (PR:L) and user interaction (UI:R), substantially limiting attack surface compared to unauthenticated or zero-click vulnerabilities. The EPSS score of 0.02% (5th percentile) indicates this vulnerability type is rarely exploited in practice, likely because it requires insider access (authenticated user) and social engineering to trick victims into viewing malicious messages. SSVC considerations: exploitation status shows POC exists but no confirmed active exploitation; automatable assessment is 'no' due to required user interaction; technical impact is high (session hijacking capability). This represents a moderate insider threat risk rather than a critical external threat. Priority should be medium for organizations using Totara LMS, elevated to high only for environments with untrusted authenticated users or compliance requirements around data confidentiality. |
| Exploit ScenarioDerived | An authenticated attacker with low-privilege access (such as a student account in an educational deployment or a standard employee account in corporate training environments) crafts a message containing JavaScript payload disguised within HTML tags. The attacker uses Totara LMS's messaging feature to send this malicious message to multiple users or broadcast to all users if permissions allow. When recipients open the message in their browser, the injected script executes, stealing session cookies and transmitting them to attacker-controlled infrastructure. With hijacked sessions, the attacker gains unauthorized access to victim accounts, potentially including administrative users, enabling data exfiltration of learning records, modification of course content, or deployment of additional payloads. Publicly available exploit code exists demonstrating this attack chain. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 14, 2026
HTML Injection in Totara LMS through version 19.1.5 allows authenticated users with low privileges to inject malicious HTML/JavaScript into messages sent to all application users, enabling session hijacking and arbitrary command execution in victims' browsers. A publicly available exploit exists (GitHub POC referenced), though no confirmed active exploitation (not in CISA KEV). EPSS score of 0.02% indicates very low observed exploitation probability despite the CVSS 8.0 rating, suggesting limited attacker interest or opportunity in real-world environments.
RemediationAI
No vendor-released patch version is independently confirmed from available data sources at time of analysis. Organizations should consult Totara's official security advisories at https://www.totara.com/ for patch availability and upgrade guidance. As an interim mitigation, implement Content Security Policy headers to restrict inline script execution, enable strict HTML filtering on user-generated content in messaging modules, and review user privilege assignments to limit low-privilege account access to messaging broadcast features. Monitor authentication logs for suspicious messaging activity patterns and consider temporarily restricting broadcast messaging capabilities to trusted administrator accounts until patching is completed. The GitHub POC repository (https://github.com/saykino/CVE-2026-31281) may provide technical details useful for detection signature development but should not be executed in production environments.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This is a stored cross-site scripting (XSS) vulnerability classified under CWE-79 (Improper Neutralization of Input During Web Page Generation). Totara LMS, a learning management system fork of Moodle, fails to properly sanitize HTML content within its messaging system. When an authenticated user crafts a message containing malicious HTML/JavaScript payloads and distributes it through the platform's messaging feature, the application stores and renders this content without adequate encoding or Content Security Policy enforcement. Upon message retrieval, the injected script executes in the context of victim users' browser sessions, providing access to session cookies, CSRF tokens, and DOM manipulation capabilities. The vulnerability affects the messaging module specifically, leveraging the application's trust in content from authenticated internal users.
Know when N A 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
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
Totara LMS v19.1.5 and before is vulnerable to HTLM Injection. An attacker can inject malicious HTLM code in a message and send it to all the users in the application, resulting in executing the code and may lead to session hijacking and executing commands on the victim's browser.
Executive ViewAI
Totara LMS versions up to 19.1.5 contain an HTML injection vulnerability that allows authenticated users with low privileges to inject malicious scripts into messages distributed to all application users, potentially leading to session hijacking and arbitrary code execution. This vulnerability poses a direct risk to end-user security and data confidentiality across your learning management platform, particularly affecting organizations with large user bases and multi-user messaging features.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict messaging permissions for non-administrative users; (2) Implement Content Security Policy (CSP) headers to prevent inline script execution; (3) Deploy web application firewall (WAF) rules to block HTML/JavaScript injection patterns in message inputs; (4) Enable comprehensive audit logging for all message creation and distribution events; (5) Conduct immediate security awareness communications to users regarding suspicious message handling.
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
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2026-21928
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB