CVE-2025-59788: Cross-site scripting (XSS) vulnerability in a reachable files_pdfviewer example directory in Nextcloud with ve
CVE-2025-59788 is a medium-severity flaw (CVSS 6.4) affecting nextcloud server. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 is
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Last updated 2026-10-18 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-59788?
nextcloud server: upgrade to 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. Exact commands for each OS are on this page.
Is CVE-2025-59788 being exploited?
CVE-2025-59788 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-59788 affect?
CVE-2025-59788 affects nextcloud server. Severity is medium (CVSS 6.4). 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
How urgent is CVE-2025-59788?
Priority 33/100. Public exploit reference
Software pages
Related CVEs
- CVE-2025-66512 MEDIUM 5.4 UPGRADE Nextcloud Server is a self hosted personal cloud system
- CVE-2025-66510 MEDIUM 4.5 UPGRADE Nextcloud Server is a self hosted personal cloud system
- CVE-2025-66552 MEDIUM 4.3 UPGRADE Nextcloud Server is a self hosted personal cloud system
- CVE-2025-66547 MEDIUM 4.3 UPGRADE Nextcloud Server is a self hosted personal cloud system
- CVE-2025-64011 MEDIUM 4.3 DOWNGRADE Nextcloud Server 30.0.0 is vulnerable to an Insecure Direct Object Reference (IDOR) in the /core/preview endpo