Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain upload/share access to Nextcloud
-
DeliveryUpload crafted malicious SVG
-
ExploitSend victim direct file link
-
ExecutionVictim opens SVG outside web UI
-
ImpactCSP 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
Affected Packages
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
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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.
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
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
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.
Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.
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.
Related Vulnerabilities in Nextcloud Server Input Validation Flaws
View all 4More in Nextcloud Server
View allNextcloud server is an open source home cloud implementation. Rated high severity (CVSS 8.8), this vulnerability is remo
Nextcloud Server provides data storage for Nextcloud, an open source cloud platform. Rated critical severity (CVSS 9.8),
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 server is an open source home cloud implementation. Rated high severity (CVSS 8.8), this vulnerability is remo
Insufficient protection of the server-side encryption keys in Nextcloud Server 19.0.1 allowed an attacker to replace the
A bug in Nextcloud Server 14.0.4 could expose more data in reshared link shares than intended by the sharer. Rated high
An Insecure direct object reference vulnerability in Nextcloud Server 18.0.2 allowed an attacker to remote wipe devices
Nextcloud Server is the file server software for Nextcloud, a self-hosted productivity platform. Rated high severity (CV
Nextcloud is an Open Source private cloud software. Rated high severity (CVSS 7.5), this vulnerability is remotely explo
A logic error in Nextcloud Server 19.0.0 caused a plaintext storage of the share password when it was given on the initi
Nextcloud Server provides data storage for Nextcloud, an open source cloud platform. Rated high severity (CVSS 7.1), thi
A wrong configuration in Nextcloud Server 19.0.1 incorrectly made the user feel the passwordless WebAuthn is also a two
Same weakness CWE-80 – Basic XSS
View allVendor StatusVendor
Debian
Bug #941708| Release | Status | Fixed Version | Urgency |
|---|---|---|---|
| open | - | - |
EUVD-2025-201449
NVD
CVE.org
EPSS
GitHub
Exploit-DB