Cross-Site Scripting Vulnerability in Nextcloud PDF Viewer

6.4MEDIUM

CVE-2025-59788

Key Information:

Vendor

Nextcloud

Status
CVE ID
CVE ID:
CVE-2025-59788
Vendor
CVE Published:
4 December 2025
Fixed in
Fixed in:
22.2.10.33, 23.0.12.29, 24.0.12.28 +8 more

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Partly: Works over the network, but needs a login
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Monitor

Low risk for most. Patch in your normal cycle.

What to do

1Update to a fixed version
Nextcloud 0 to below 22.2.10.33 is vulnerable
Nextcloud 23 to below 23.0.12.29 is vulnerable
Nextcloud 24 to below 24.0.12.28 is vulnerable
Nextcloud 25 to below 25.0.13.23 is vulnerable
Nextcloud 26 to below 26.0.13.20 is vulnerable
Nextcloud 27 to below 27.1.11.20 is vulnerable

Install the Nextcloud release that fixes your version line, or later:

22.2.10.3323.0.12.2924.0.12.2825.0.13.2326.0.13.2027.1.11.2028.0.14.1129.0.16.830.0.1731.0.10+1 more
Read the vendor advisory ↗
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Nextcloud. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Monitor"
  • Its CVSS severity is medium (6.4).

What is CVE-2025-59788?

A Cross-site Scripting (XSS) vulnerability exists in the Nextcloud PDF viewer, which allows attackers to execute arbitrary JavaScript within a user's browser by leveraging a crafted PDF file sent to the viewer. This vulnerability affects various versions of the PDF viewer before 22.2.10.33 and multiple subsequent releases, potentially exposing users to various security threats.

References

Improper Authorization in Nextcloud Server Affects Calendar Functionality

CVE-2026-45281
NextcloudSecurity-advisories8.1HIGH

Missing Signature Verification in Nextcloud OIDC Enables User Impersonation

CVE-2026-45156
NextcloudSecurity-advisories👾8.1HIGH
View more Nextcloud vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

CVSS V3.1

Score:
6.4
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Changed
.