Skip to main content

Nextcloud Server CVE-2025-66512

| EUVDEUVD-2025-201449 MEDIUM
Basic XSS (CWE-80)
2025-12-05 security-advisories@github.com
6.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Obtain upload/share access to Nextcloud
  2. Delivery
    Upload crafted malicious SVG
  3. Exploit
    Send victim direct file link
  4. Execution
    Victim opens SVG outside web UI
  5. Impact
    CSP bypassed, script executes in browser

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTML tag escaping
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires (1) the ability to upload an SVG file to the Nextcloud instance - in typical deployments this means an authenticated account or a writable share, not anonymous access - and (2) tricking a victim into opening that SVG directly OUTSIDE the Nextcloud web page (e.g., via a raw file/download URL) where the server's Content-Security-Policy is not applied; the missing sanitization is only reachable in that out-of-app rendering context. Limiting factors that reduce real-world risk: mandatory victim user interaction (UI:R), the need for upload/share capability, and that impact is confined to the victim's browser session (C:L/I:L, no availability impact). Only Nextcloud Server and Server Enterprise before 31.0.12 (32.x) and 31.0.12 are affected.

Impact

This is a moderate-severity CSP bypass / stored-XSS-class issue (CWE-80) rated CVSS 6.1, and the combined signals argue strongly against treating it as an urgent priority. The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) shows network reach, low complexity, a scope change (the injected content escapes Nextcloud's CSP boundary into the victim's browser context), but only low confidentiality/integrity impact and mandatory user interaction. EPSS is 0.02% (6th percentile), there is no CISA KEV listing, and no public exploit code was identified - all three low-risk indicators are consistent with each other, so there is no conflict between a high score and low real-world risk here. One tension worth flagging: the CVSS vector encodes PR:N (unauthenticated), yet the description characterizes the actor as 'a malicious user' who uploads an SVG, which in most Nextcloud deployments presupposes an account or a share capability - verify with the vendor whether truly anonymous upload is a precondition. Overall this is a low-priority, patch-in-normal-cycle issue: real but narrow, interaction-gated, and limited in impact.

Exploit ScenarioDerived

A user with upload or file-sharing rights on a Nextcloud instance uploads a crafted SVG containing active content, then sends a victim a direct link to that file so it renders outside the Nextcloud web page where the server's Content-Security-Policy is not enforced. When the victim opens the link, the SVG's scripting executes in their browser, enabling session-scoped data theft or UI manipulation. No public exploit code was identified at time of analysis, though a HackerOne report (#3357808) is referenced as the disclosure vehicle.

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 18, 2026

A content-security-policy bypass in the Nextcloud Viewer app lets a malicious SVG file execute script in a victim's browser once that SVG is opened outside the Nextcloud web interface (for example via a raw file or download URL), because sanitization of the uploaded SVG is missing and the server's CSP header does not apply in that rendering context. Exploitation requires the ability to upload an SVG to the instance - typically an authenticated account or a writable share rather than anonymous access - plus a victim who is tricked into opening that file directly. Impact is confined to the victim's browser session (limited confidentiality and integrity, no availability impact) and depends on user interaction; risk signals are low (EPSS ~0.02%, 6th percentile) and no public exploit code or confirmed active exploitation was identified at time of analysis, so this should be scheduled as routine patching rather than treated as an emergency.

Earlier versions of this analysis (1)
v1 Mar 15, 2026 - 17:08 CVSS 5.4

RemediationAI

Vendor-released patch: upgrade Nextcloud Server to 31.0.12 or 32.0.3 (or later) for both standard and enterprise editions, per advisory https://github.com/nextcloud/security-advisories/security/advisories/GHSA-qcw2-p26m-9gc5; the corrective code lands in the Viewer app via commit 5044a27d61bc40c0f134298d36af91f865335b63 (PR 3023), so distributions that package the viewer separately (see Debian bug #941708) should confirm they ship the rebuilt assets. Where immediate upgrade is not possible, reduce exposure by restricting SVG upload to trusted users or disabling SVG preview/rendering in the Viewer app - the trade-off is loss of inline preview for legitimate SVG assets; additionally ensure raw file and download responses are served with Content-Disposition: attachment plus X-Content-Type-Options: nosniff so browsers do not render uploaded SVGs as top-level documents, and, if feasible, extend the CSP header to raw-file endpoints rather than only application pages - both measures can break legitimate direct-download or embedding workflows and should be validated against user expectations. Because exploitable paths require an attacker to place a file and then persuade a victim to open a non-application URL, user awareness around opening raw link URLs from untrusted senders is a useful complementary control.

Affected VersionsENISA

security-advisories 32.0.0beta1, < 32.0.3
security-advisories < 31.0.12

Affected Packages

euvd security_advisories fix: 31.0.12
euvd security_advisories_32_0_0beta1 fix: 32.0.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Nextcloud Server is a self-hosted collaboration and file-sync platform whose Viewer app renders previews for many file types, including SVG. The defect is classified CWE-80 (improper neutralization of script-related HTML tags), essentially a stored-XSS-class weakness realized through incomplete sanitization of user-supplied SVG markup. SVG is an XML image format that can legitimately carry <script> elements and event-handler attributes, so any SVG served to a browser without sanitization is executable content rather than inert data. Nextcloud normally relies on its Content-Security-Policy response header to neutralize such payloads while a file is displayed inside the Nextcloud web page. The missing sanitization matters only in the edge case where the uploaded SVG is fetched directly - via a raw-file or download link - so the response is rendered by the browser as a top-level document without the CSP that governs the application pages. The upstream fix in the nextcloud/viewer app (commit 5044a27d61bc40c0f134298d36af91f865335b63, PR 3023) rebuilds the packaged viewer assets (CSS/JS chunks) with corrected handling, and the vendor advisory GHSA-qcw2-p26m-9gc5 tracks the release vehicles. Affected configurations are Nextcloud Server and Server Enterprise branches before 31.0.12 and 32.x before 32.0.3; the CVSS vector scopes the impact as changed (S:C) with low confidentiality and integrity impact, reflecting that script runs in the origin serving the file rather than the hardened application context.

Know when Nextcloud Server 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 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Uploading the SVG realistically needs an account so PR:L (not PR:N); the victim must open the file so UI:R; the CSP bypass crosses into the browser context so S:C, with limited C/I impact.

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:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

3
CVSS changed
Oct 18, 2026 - 14:22 NVD
5.4 (MEDIUM) 6.1 (MEDIUM)
Patch released
Mar 15, 2026 - 17:08 nvd
Patch available
CVE Published
Dec 05, 2025 - 17:16 nvd
MEDIUM 5.4

DescriptionNVD

Nextcloud Server is a self hosted personal cloud system. In Nextcloud Server and Server Enterprise prior to 31.0.12 and 32.0.3, a missing sanitization allowed malicious users to circumvent the content security policy when a malicious user manages to trick a user it viewing an uploaded SVG outside of the Nextcloud Servers web page.

Executive ViewAI

Why It Matters

Organizations using Nextcloud Server and Server Enterprise should be aware of moderate risk from CVE-2025-66512 rated CVSS 5.4. Exploitation could compromise the security of affected deployments. A patch is available and should be applied during regular vulnerability management.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Prevalence
Medium
popular self-hosted cloud platform, common but not ubiquitous
Data Quality
6 sources
Confidence: High

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

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

Related Vulnerabilities in Nextcloud Server Input Validation Flaws

View all 4
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-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-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-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-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

CVE-2020-8121 HIGH POC
8.1 Feb 04

A bug in Nextcloud Server 14.0.4 could expose more data in reshared link shares than intended by the sharer. Rated high

CVE-2020-8154 HIGH POC
7.7 May 12

An Insecure direct object reference vulnerability in Nextcloud Server 18.0.2 allowed an attacker to remote wipe devices

CVE-2023-28847 HIGH POC
7.5 Apr 25

Nextcloud Server is the file server software for Nextcloud, a self-hosted productivity platform. Rated high severity (CV

CVE-2023-25821 HIGH POC
7.5 Feb 25

Nextcloud is an Open Source private cloud software. Rated high severity (CVSS 7.5), this vulnerability is remotely explo

CVE-2020-8183 HIGH POC
7.5 Nov 02

A logic error in Nextcloud Server 19.0.0 caused a plaintext storage of the share password when it was given on the initi

CVE-2023-48239 HIGH POC
7.1 Nov 21

Nextcloud Server provides data storage for Nextcloud, an open source cloud platform. Rated high severity (CVSS 7.1), thi

CVE-2020-8236 MEDIUM POC
6.8 Nov 02

A wrong configuration in Nextcloud Server 19.0.1 incorrectly made the user feel the passwordless WebAuthn is also a two

Vendor StatusVendor

Debian

Bug #941708
nextcloud-server
Release Status Fixed Version Urgency
open - -

SUSE

Severity: Medium

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