CVE-2025-59788 in Nextcloud Server and 1 more product
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 ...
Affects 2 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, requires user interaction, can impact systems beyond the vulnerable component, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Nextcloud | Nextcloud Server | ≥ 22.0.0, < 22.2.10.33 ≥ 23.0.0, < 23.0.12.29 ≥ 24.0.0, < 24.0.12.28 ≥ 25.0.0, < 25.0.13.23 ≥ 26.0.0, < 26.0.13.20 ≥ 27.0.0, < 27.1.11.20+5 more≥ 28.0.0, < 28.0.14.11 ≥ 29.0.0, < 29.0.16.8 ≥ 30.0.0, < 30.0.17 ≥ 31.0.0, < 31.0.10 ≥ 32.0.0, < 32.0.1 |
| Nextcloud | Nextcloud | < 22.2.10.33 ≥ 23, < 23.0.12.29 ≥ 24, < 24.0.12.28 ≥ 25, < 25.0.13.23 ≥ 26, < 26.0.13.20 ≥ 27, < 27.1.11.20+5 more≥ 28, < 28.0.14.11 ≥ 29, < 29.0.16.8 ≥ 30, < 30.0.17 ≥ 31, < 31.0.10 ≥ 32, < 32.0.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-59788 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-033378-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| Published | 2025-12-04 |
| Last modified | 2026-10-18 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-79: Cross-Site Scripting (XSS)
Attacker injects malicious scripts into web pages viewed by other users, executing in the victim's browser context.
CWE-749: CWE-749
Related attack patterns (CAPEC)
CAPEC-85 AJAX Footprinting via CWE-79
CAPEC-209 XSS Using MIME Type Mismatch via CWE-79
CAPEC-500 WebView Injection via CWE-749
CAPEC-588 DOM-Based XSS via CWE-79
CAPEC-591 Reflected XSS via CWE-79
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
{ "executive_summary": "A Cross-site scripting (XSS) vulnerability exists in the files_pdfviewer example directory of Nextcloud 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. This vulnerability allows attackers to execute arbitrary JavaScript in the context of a user's browser via a crafted PDF file to viewer.html.", "attack_vector_detail": "An attacker can exploit this vulnerability by uploading a specially crafted PDF file to the files_pdfviewer example directory. When a user opens this PDF file using the viewer.html, the embedded JavaScript code can execute in the user's browser, potentially leading to unauthorized actions or data theft.", "affected_components": ["files_pdfviewer example directory",
Vulnerability details: 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 CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
Questions
What is CVE-2025-59788?
{ "executive_summary": "A Cross-site scripting (XSS) vulnerability exists in the files_pdfviewer example directory of Nextcloud 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. This vulnerability allows attackers to execute arbitrary JavaScript in the context of a user's browser via a crafted PDF file to viewer.html.", "attack_vector_detail": "An attacker can exploit this vulnerability by uploading a
What is the CVSS score for CVE-2025-59788?
CVE-2025-59788 has CVSS 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N. EPSS: 0.5%.
Is CVE-2025-59788 actively exploited?
No confirmed active exploitation of CVE-2025-59788 as of 2026-10-24.
How do I remediate CVE-2025-59788?
Priority: LOW. PSIRT: [email protected]
What systems are affected by CVE-2025-59788?
CVE-2025-59788 affects Nextcloud Nextcloud Server, Nextcloud.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Nextcloud","product":"Nextcloud Server","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-18.