Skip to main content

N A EUVDEUVD-2026-21928

| CVE-2026-31281 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-04-13 mitre
8.0
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate with low-privilege account
  2. Delivery
    Craft HTML message with JavaScript payload
  3. Exploit
    Send broadcast message to users
  4. Install
    Victim opens malicious message
  5. C2
    Injected script executes in victim browser
  6. Execute
    Steal session cookies via XHR
  7. Impact
    Hijack 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

n/a n/a

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

NVD PRIMARY 8.0 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
CVSS changed
Apr 14, 2026 - 17:22 NVD
8.0 (HIGH)
CVE Published
Apr 13, 2026 - 00:00 nvd
HIGH 8.0

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 95% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 No
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
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 N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

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