Cross-site scripting in Nextcloud
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
Cross-site scripting (XSS) vulnerability in a reachable files_pdfviewer example directory in Nextcloud with versions before 22.2.10.33, 23.0.12.29, 24.0.12.28, 25.0.13.23, 26.0.13.20, 27.1.11.20, 28.0.14.11, 29.0.16.8, 30.0.17, 31.0.10, and 32.0.1 allows attackers to execute arbitrary JavaScript in the context of a user's browser via a crafted PDF file to viewer.html. This issue is related to CVE-2024-4367, but the root cause of this Nextcloud issue is that the product exposes executable example code on a same-origin basis.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nextcloud | Nextcloud | before 22.2.10.33; 23 to before 23.0.12.29; 24 to before 24.0.12.28; 25 to before 25.0.13.23; 26 to before 26.0.13.20; 27 to before 27.1.11.20; 28 to before 28.0.14.11; 29 to before 29.0.16.8; 30 to before 30.0.17; 31 to before 31.0.10; 32 to before 32.0.1 | 22.2.10.33, 23.0.12.29, 24.0.12.28, 25.0.13.23, 26.0.13.20, 27.1.11.20, 28.0.14.11, 29.0.16.8, 30.0.17, 31.0.10, 32.0.1 | Patch available | CNA |
- Nextcloud Vendornextcloud Affected before 22.2.10.33; 23 to before 23.0.12.29; 24 to before 24.0.12.28; 25 to before 25.0.13.23; 26 to before 26.0.13.20; 27 to before 27.1.11.20; 28 to before 28.0.14.11; 29 to before 29.0.16.8; 30 to before 30.0.17; 31 to before 31.0.10; 32 to before 32.0.1 Fixed in 22.2.10.33, 23.0.12.29, 24.0.12.28, 25.0.13.23, 26.0.13.20, 27.1.11.20, 28.0.14.11, 29.0.16.8, 30.0.17, 31.0.10, 32.0.1 Patch available CNA
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:-:*:*:* | 30.0.0 to before 30.0.17; 31.0.0 to before 31.0.10; 32.0.0 to before 32.0.1 | Vulnerable | nextcloud |
| cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:* | 22.0.0 to before 22.2.10.33; 23.0.0 to before 23.0.12.29; 24.0.0 to before 24.0.12.28; 25.0.0 to before 25.0.13.23; 26.0.0 to before 26.0.13.20; 27.0.0 to before 27.1.11.20; 28.0.0 to before 28.0.14.11; 29.0.0 to before 29.0.16.8; 30.0.0 to before 30.0.17; 31.0.0 to before 31.0.10; 32.0.0 to before 32.0.1 | Vulnerable | nextcloud |
- cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:-:*:*:* Versions 30.0.0 to before 30.0.17; 31.0.0 to before 31.0.10; 32.0.0 to before 32.0.1 Vulnerable ·nextcloud
- cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:* Versions 22.0.0 to before 22.2.10.33; 23.0.0 to before 23.0.12.29; 24.0.0 to before 24.0.12.28; 25.0.0 to before 25.0.13.23; 26.0.0 to before 26.0.13.20; 27.0.0 to before 27.1.11.20; 28.0.0 to before 28.0.14.11; 29.0.0 to before 29.0.16.8; 30.0.0 to before 30.0.17; 31.0.0 to before 31.0.10; 32.0.0 to before 32.0.1 Vulnerable ·nextcloud
Remediation
- Fix · CNA Nextcloud (Nextcloud) Fixed in 22.2.10.33, 23.0.12.29, 24.0.12.28, 25.0.13.23, 26.0.13.20, 27.1.11.20, 28.0.14.11, 29.0.16.8, 30.0.17, 31.0.10, 32.0.1
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2025-59788
- 2026-10-03 Alias added: GHSA-88cv-g9gq-h6pq
References
More Nextcloud Server vulnerabilities
- TI-2023-20855 Users can delete external storage mount points CVSS 3.1HIGH 7.7
- TI-2023-11091 Nextcloud download permissions can be changed by resharer CVSS 3.1HIGH 7.5
- TI-2023-10624 Nextcloud Server vulnerable to SSRF via filter bypass due to lax checking on IPs CVSS 3.1MEDIUM 5.3
- TI-2023-11086 nextcloud vulnerable to Uncontrolled Resource Consumption CVSS 3.1MEDIUM 6.5
- TI-2022-18738 Exception logging in Sharepoint app reveals clear-text connection details CVSS 3.1MEDIUM 6.5
- TI-2022-08555 High memory usage in Nextcloud server CVSS 3.1MEDIUM 6.5
Sources
- CVE-2025-59788 · CVE Program
- CVE-2025-59788 · NVD
- FIRST EPSS
- GHSA-88cv-g9gq-h6pq · GitHub Advisory Database · CC BY 4.0
- CVE-2025-59788 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences