CVE-2025-59788: XSS

Published Dec 4, 2025
·
Updated

Cross-site scripting (XSS) vulnerability in a reachable filespdfviewer 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.

Affected Software

15 affected components
Nextcloud Nextcloud<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
Nextcloud NextCloud Server>=30.0.0<30.0.17
Nextcloud NextCloud Server>=31.0.0<31.0.10
Nextcloud NextCloud Server>=32.0.0<32.0.1
Nextcloud NextCloud Server>=22.0.0<22.2.10.33
Nextcloud NextCloud Server>=23.0.0<23.0.12.29
Nextcloud NextCloud Server>=24.0.0<24.0.12.28
Nextcloud NextCloud Server>=25.0.0<25.0.13.23
Nextcloud NextCloud Server>=26.0.0<26.0.13.20
Nextcloud NextCloud Server>=27.0.0<27.1.11.20
Nextcloud NextCloud Server>=28.0.0<28.0.14.11
Nextcloud NextCloud Server>=29.0.0<29.0.16.8
Nextcloud NextCloud Server>=30.0.0<30.0.17
Nextcloud NextCloud Server>=31.0.0<31.0.10
Nextcloud NextCloud Server>=32.0.0<32.0.1

Event History

Dec 4, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-59788?

CVE-2025-59788 is classified as a cross-site scripting (XSS) vulnerability which can lead to significant security risks if exploited.

2

How do I fix CVE-2025-59788?

To fix CVE-2025-59788, users should upgrade Nextcloud to versions 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, or 32.0.1.

3

What versions of Nextcloud are affected by CVE-2025-59788?

CVE-2025-59788 affects Nextcloud versions prior 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, and 32.0.1.

4

What type of attack does CVE-2025-59788 allow?

CVE-2025-59788 allows attackers to execute arbitrary JavaScript in the affected Nextcloud installations, which can lead to data theft or session hijacking.

5

Is there a workaround for CVE-2025-59788 if I cannot immediately upgrade?

Currently, there are no official workarounds for CVE-2025-59788, so immediate upgrading is recommended to mitigate risk.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203