CVE-2025-59788: Development files shipped in files_pdfviewer app
CVE-2025-59788 affects 89 listed versions of Nextcloud in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Nextcloud
89 of 250 listed versions are affected. Fixed in 31.0.10, 30.0.17, 29.0.16.8, 28.0.14.11, 27.1.11.20, 26.0.13.20, 25.0.13.23, 24.0.12.28. The newest release, 35.0.3, is not affected.
31.0.9 31.0.8 31.0.7 30.0.16 30.0.15 30.0.14 30.0.13 30.0.12 30.0.11 29.0.16 29.0.15 29.0.14 29.0.13 29.0.12 29.0.11 29.0.10 29.0.9 28.0.14.6 28.0.14.4 28.0.14 28.0.13 28.0.12 28.0.11 28.0.10 28.0.9 28.0.8 27.1.11.15 27.1.11.13 27.1.11.10 27.1.11.9 27.1.11.8 27.1.11.5 27.1.11 27.1.10 27.1.9 27.0.2 27.0.1 27.0.0 26.0.13.15 26.0.13.13 26.0.13.10 26.0.13.9 26.0.13.4 26.0.13.3 26.0.13 26.0.12 26.0.11 26.0.10 25.0.13.14 25.0.13.13 25.0.13.10 25.0.13.9 25.0.13.8 25.0.13.7 25.0.13.6 25.0.13.4 25.0.13 25.0.12 24.0.12.15 24.0.12.14 and 29 more
What it is
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N (NVD)
Published by MITRE on 4 December 2025. Last changed 18 October 2026.
Sources
Check one version you run: look CVE-2025-59788 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.