CVE-2025-59788

MEDIUM
Published Dec 4, 2025 Modified Mar 25, 2026 CWE-749 CWE-79

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.

CVSS v3.1 Score

6.4
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Weakness Type (CWE)

CWE-749 CWE-749
CWE-79 Cross-site Scripting (XSS)

Affected Products

Vendor Product
nextcloud nextcloud_server
nextcloud nextcloud_server
nextcloud nextcloud_server
nextcloud nextcloud_server
nextcloud nextcloud_server
nextcloud nextcloud_server
nextcloud nextcloud_server
nextcloud nextcloud_server
nextcloud nextcloud_server
nextcloud nextcloud_server
nextcloud nextcloud_server
nextcloud nextcloud_server
nextcloud nextcloud_server
nextcloud nextcloud_server

References

Frequently Asked Questions

What is CVE-2025-59788? +
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. It has a CVSS v3.1 base score of 6.4 (MEDIUM).
How severe is CVE-2025-59788? +
CVE-2025-59788 has a CVSS v3.1 score of 6.4 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2025-59788? +
CVE-2025-59788 affects products from nextcloud, specifically: nextcloud_server. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-59788? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-59788 — free, no signup required.

Start Free Scan