Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Nextcloud Mail instance
-
ExploitSend email with HTML-laden subject
-
ExecutionVictim opens Mail message list
-
ImpactUnescaped HTML rendered in victim's browser
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A03:2021 - Injection
ASVS 5.0
V5 - Validation, Sanitization and Encoding Input validation, output encoding, parameterized queries
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 an authenticated Nextcloud user who can deliver an email containing crafted HTML in the Subject header to a target mailbox on Nextcloud Mail prior to 5.5.3 (including 5.2.0-beta.1). Exploitation further requires victim interaction (UI:R): a second user must open the Mail app and view the message list for the stored subject to render. A key LIMITING factor is the Nextcloud Server content security policy, which blocks JavaScript execution, so impact is restricted to HTML injection (phishing/content/UI spoofing) rather than script-based session compromise. No exploitation is possible against instances already upgraded to 5.5.3. |
| Impact | This is a low-to-moderate priority issue that scores CVSS 5.4 (Medium) and the real-world signals reinforce the lower end of that range. The CVSS vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N indicates network-reachable but authenticated (PR:L) exploitation that also requires victim interaction (UI:R), with only Low confidentiality and integrity impact and no availability impact. EPSS is effectively negligible at 0.02% (5th percentile), the CVE is NOT on the CISA KEV list, and no public proof-of-concept was identified in the provided references (the GitHub/HackerOne report 3357036 is a responsible-disclosure advisory, not weaponized exploit code). Critically, the vulnerability is a STORED HTML INJECTION, not full XSS: the description explicitly states that JavaScript was correctly blocked by the Nextcloud Server content security policy, so the impact is confined to HTML-based content spoofing/phishing within the message list rather than script execution or session theft. All signals are consistent and point to a genuine but limited defense-in-depth bug; there are no conflicting indicators to flag. The scope change (S:C) is the main reason the score is not lower, reflecting that one authenticated user can affect the rendering context of another user. |
| Exploit ScenarioDerived | An authenticated user on a shared Nextcloud instance crafts an email whose subject line contains malicious HTML markup and ensures it lands in a victim's mailbox. When the victim opens the Mail app and the message list renders the subject, the injected HTML is interpreted by the browser, enabling convincing in-app phishing or UI spoofing. Because the Nextcloud CSP blocks JavaScript, the attacker cannot run scripts; no public exploit code was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 15, 2026
Stored HTML injection in the Nextcloud Mail app's message list lets an authenticated user embed crafted markup into email subjects that is rendered for other mailbox users. The issue affects Nextcloud Mail prior to 5.5.3 (including 5.2.0-beta.1) and requires victim interaction, since a second user must open the Mail app and view the message list for the stored subject to render. Because the Nextcloud Server content security policy blocks JavaScript execution, impact is confined to HTML injection such as phishing, content spoofing, and UI manipulation rather than script-driven session compromise; EPSS is 0.02% (5th percentile) and no public exploit has been identified at time of analysis.
Earlier versions of this analysis (1)
RemediationAI
Upgrade the Nextcloud Mail app to 5.5.3 or later, which is the vendor-released patch version that escapes the email subject in the message list; the fix is delivered by the upstream commit https://github.com/nextcloud/mail/commit/c64fcc3b79e0c089b5e1d2e04a07bfa740b2ac09 and PR https://github.com/nextcloud/mail/pull/11740, with full details in advisory GHSA-v394-8gpc-6fv5 (https://github.com/nextcloud/security-advisories/security/advisories/GHSA-v394-8gpc-6fv5). Because the exploit path depends on a victim opening the Mail app and viewing the message list, immediate compensating controls for instances that cannot be upgraded promptly are to treat inbound email subjects from untrusted senders as attacker-controlled, restrict the set of users permitted to deliver mail into shared Nextcloud Mail accounts, and rely on the Nextcloud Server content security policy already in place, which blocks JavaScript execution and keeps this an HTML injection rather than a script execution issue. Note that a per-mailbox restriction on which accounts can receive external mail reduces the attack surface but can interfere with legitimate mail flow, and any continued exposure of unescaped subjects preserves the phishing and UI-spoofing risk. Patch availability is confirmed by the vendor, so staged upgrade to 5.5.3 should be prioritized over long-term reliance on workarounds.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is a CWE-79 injection in Nextcloud Mail, the mail client app for the self-hosted Nextcloud productivity platform. The affected code lives in the Vue.js front-end component src/components/Envelope.vue, where the message-list rendering path returned a raw email Subject value; the upstream fix (commit c64fcc3b79e0c089b5e1d2e04a07bfa740b2ac09, PR #11740) wraps that value in escapeHtml() before rendering, escaping angle brackets and other markup characters. The CPE cpe:2.3:a:nextcloud:mail:*:*:*:*:*:nextcloud:*:* identifies the Nextcloud Mail app itself as the affected component. Although classified under CWE-79, the practical root cause is unsanitized HTML reaching the DOM in a context where Nextcloud Server's content security policy neutralizes script execution, so this is best treated as HTML injection (markup/UI spoofing) rather than a full cross-site scripting primitive. The assessed vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N reflects network delivery, low attack complexity, a requirement for an authenticated attacker account (PR:L), and a requirement that a victim user view the message list (UI:R), with scope change and only low confidentiality and integrity impact.
Know when Nextcloud 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:C/C:L/I:L/A:N
Authenticated sender (PR:L) and victim must view the message list (UI:R); injection renders in another user's context (S:C), but CSP blocks JS so only Low C/I from HTML spoofing.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
Nextcloud Mail is the mail app for Nextcloud, a self-hosted productivity platform. Prior to 5.5.3, a stored HTML injection in the Mail app's message list allowed an authenticated user to inject HTML into the email subjects. Javascript was correctly blocked by the content security policy of the Nextcloud Server code.
Executive ViewAI
CVE-2025-66514 is a low-severity vulnerability in Nextcloud Mail involving cross-site scripting (CVSS 3.5). The limited severity suggests constrained impact, typically requiring specific conditions or local access for exploitation. A patch is available and can be applied during standard maintenance windows.
Apply vendor patch during routine maintenance. Standard cross-site scripting mitigations apply if patching is delayed.
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.
Unauthenticated OS command injection in the Collabora Online Built-in CODE Server Nextcloud app (richdocumentscode) befo
Nextcloud server is an open source home cloud implementation. Rated high severity (CVSS 8.8), this vulnerability is remo
A too lax check in Nextcloud Talk 6.0.4, 7.0.2 and 8.0.7 allowed a code injection when a not correctly sanitized talk co
Nextcloud Server provides data storage for Nextcloud, an open source cloud platform. Rated critical severity (CVSS 9.8),
Unauthenticated vector-store tampering in Nextcloud MCP Server before 0.117.2 lets any network attacker who can reach th
Nextcloud Server before 9.0.54 and 10.0.1 & ownCloud Server before 9.1.2, 9.0.6, and 8.2.9 suffer from SMB User Authenti
NextCloud Cookbook is a recipe library app. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable,
Nextcloud server is an open source home cloud implementation. Rated high severity (CVSS 8.8), this vulnerability is remo
Nextcloud Desktop Client prior to 3.1.3 is vulnerable to resource injection by way of missing validation of URLs, allowi
lib/Controller/ExtractionController.php in the Extract add-on before 1.2.0 for Nextcloud allows Remote Code Execution vi
Authorization bypass in Windmill 1.56.0-1.614.0 enables Operator role users to escalate privileges to remote code execut
Insufficient protection of the server-side encryption keys in Nextcloud Server 19.0.1 allowed an attacker to replace the
EUVD-2025-201464
NVD
CVE.org
EPSS
GitHub
Exploit-DB