CVE-2025-66512: Nextcloud Server vulnerable to XSS in SVG images when opened outside of Nextcloud
Vulnerability summary
CVE-2025-66512 is a medium (CVSS 6.1) vulnerability in nextcloud nextcloud_server. EPSS estimates a 0.30% chance of exploitation in the next 30 days, higher than 24.5% of scored vulnerabilities.
Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 05-12-2025PublishedVulnerability first disclosed.
- 05-12-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
2 scores · 2 sources · 1 version- CVE.orgCNA5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:LDiffers
EPSS trend
Probability
0.30%
Chance of exploitation in the next 30 days
Percentile
25%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.28% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-80Improper Neutralization of Script-Related HTML Tags in a Web PageThe product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.
- CWE-79Improper Neutralization of Input During Web Page GenerationThe product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Nextcloud2 products
- nextcloud_server≥ 31.0.0, < 31.0.12 | ≥ 32.0.0, < 32.0.3
- security-advisories≥ 32.0.0beta1, < 32.0.3 | < 31.0.12
1 vendor · 2 products
References
4 links- github.com/nextcloud/security-advisories/security/advisories/GHSA-qcw2-p26m-9gc5X Refsource CONFIRMPatchVendor Advisory