Skip to main content

Nextcloud Mail CVE-2025-66514

| EUVDEUVD-2025-201464 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2025-12-05 security-advisories@github.com
5.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to Nextcloud Mail instance
  2. Exploit
    Send email with HTML-laden subject
  3. Execution
    Victim opens Mail message list
  4. Impact
    Unescaped 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – 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)
v1 Mar 15, 2026 - 17:08 CVSS 3.5

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

security-advisories 5.2.0-beta.1, < 5.5.3

Affected Packages

euvd security_advisories_5_2_0_beta_1 fix: 5.5.3

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

NVD PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

4
Severity Changed
Oct 15, 2026 - 21:25 NVD
LOW MEDIUM
CVSS changed
Oct 15, 2026 - 21:25 NVD
3.5 (LOW) 5.4 (MEDIUM)
Patch released
Mar 15, 2026 - 17:08 nvd
Patch available
CVE Published
Dec 05, 2025 - 18:15 nvd
LOW 3.5

DescriptionNVD

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

Why It Matters

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.

Business Impact: Low
Compensating Controls

Apply vendor patch during routine maintenance. Standard cross-site scripting mitigations apply if patching is delayed.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Prevalence
Medium
popular self-hosted productivity suite, but Mail is an optional component
Data Quality
5 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Low

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
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.

CVE-2026-110447 CRITICAL POC
9.2 Oct 14

Unauthenticated OS command injection in the Collabora Online Built-in CODE Server Nextcloud app (richdocumentscode) befo

CVE-2023-26482 HIGH POC
8.8 Mar 30

Nextcloud server is an open source home cloud implementation. Rated high severity (CVSS 8.8), this vulnerability is remo

CVE-2020-8180 CRITICAL POC
9.9 Jun 08

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

CVE-2023-48306 CRITICAL POC
9.8 Nov 21

Nextcloud Server provides data storage for Nextcloud, an open source cloud platform. Rated critical severity (CVSS 9.8),

CVE-2026-55640 CRITICAL POC
9.1 Aug 25

Unauthenticated vector-store tampering in Nextcloud MCP Server before 0.117.2 lets any network attacker who can reach th

CVE-2016-9463 HIGH POC
8.1 Mar 28

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

CVE-2023-31128 HIGH POC
8.8 May 26

NextCloud Cookbook is a recipe library app. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable,

CVE-2023-28643 HIGH POC
8.8 Mar 30

Nextcloud server is an open source home cloud implementation. Rated high severity (CVSS 8.8), this vulnerability is remo

CVE-2021-22879 HIGH POC
8.8 Apr 14

Nextcloud Desktop Client prior to 3.1.3 is vulnerable to resource injection by way of missing validation of URLs, allowi

CVE-2019-12739 HIGH POC
8.8 Jun 05

lib/Controller/ExtractionController.php in the Extract add-on before 1.2.0 for Nextcloud allows Remote Code Execution vi

CVE-2026-22683 HIGH POC
8.7 Apr 07

Authorization bypass in Windmill 1.56.0-1.614.0 enables Operator role users to escalate privileges to remote code execut

CVE-2020-8259 HIGH POC
8.1 Nov 16

Insufficient protection of the server-side encryption keys in Nextcloud Server 19.0.1 allowed an attacker to replace the

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