Home / Nextcloud / Nextcloud / CVE-2025-59788
CVE-2025-59788: is it exploited, and which versions of Nextcloud are affected and fixed?
CVE-2025-59788 is an exposed Dangerous Method or Function vulnerability in Nextcloud. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:39 UTC). Affected: Nextcloud before 22.2.10.33, Nextcloud from 23 before 23.0.12.29, Nextcloud from 24 before 24.0.12.28 and 8 more (CVE record by mitre). Fixed in 22.2.10.33, 23.0.12.29, 24.0.12.28, 25.0.13.23 and 2 more (CVE record by mitre). Severity: Medium (6.4, CVSS 3.1, from mitre).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:39 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:15 UTC.
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.
From the CVE record by mitre, last updated December 11, 2025, 15:04 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Nextcloud | Nextcloud | before 22.2.10.33 from 23 before 23.0.12.29 from 24 before 24.0.12.28 from 25 before 25.0.13.23 from 26 before 26.0.13.20 from 27 before 27.1.11.20 from 28 before 28.0.14.11 from 29 before 29.0.16.8 from 30 before 30.0.17 from 31 before 31.0.10 from 32 before 32.0.1 | 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 |
As the CVE record by mitre states it, last updated December 11, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| nextcloud | nextcloud server | from 30.0.0 before 30.0.17 | application |
| nextcloud | nextcloud server | from 31.0.0 before 31.0.10 | application |
| nextcloud | nextcloud server | from 32.0.0 before 32.0.1 | application |
| nextcloud | nextcloud server | from 22.0.0 before 22.2.10.33 | application |
| nextcloud | nextcloud server | from 23.0.0 before 23.0.12.29 | application |
| nextcloud | nextcloud server | from 24.0.0 before 24.0.12.28 | application |
| nextcloud | nextcloud server | from 25.0.0 before 25.0.13.23 | application |
| nextcloud | nextcloud server | from 26.0.0 before 26.0.13.20 | application |
| nextcloud | nextcloud server | from 27.0.0 before 27.1.11.20 | application |
| nextcloud | nextcloud server | from 28.0.0 before 28.0.14.11 | application |
| nextcloud | nextcloud server | from 29.0.0 before 29.0.16.8 | application |
NVD analysis (status Analyzed), last modified October 18, 2026, 15:10 UTC.
How severe is CVE-2025-59788?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N | mitre |
| Medium 5.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-59788 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, December 5, 2025)
- EPSS
- 0.32% probability of exploitation activity in the next 30 days, percentile 27.4 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-749 Exposed Dangerous Method or Function
- CWE-79 Improper Neutralization of Input During Web Page Generation
Where are the vendor advisories and references?
- https://nextcloud.com
- https://www.redteam-pentesting.de/en/advisories/rt-sa-2025-003/
- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-24wp-p865-7j4r
When was it published, and where is the official record?
- Reserved
- September 19, 2025
- Published
- December 4, 2025, 00:00 UTC
- CVE record updated
- December 11, 2025, 15:04 UTC by mitre
- NVD
- Analyzed, last modified October 18, 2026, 15:10 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:15 UTC; KEV December 3, 2026, 18:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2025-59788
Is CVE-2025-59788 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:39 UTC. FIRST's EPSS gives it a 0.32% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Nextcloud are affected by CVE-2025-59788?
Nextcloud before 22.2.10.33, Nextcloud from 23 before 23.0.12.29, Nextcloud from 24 before 24.0.12.28, Nextcloud from 25 before 25.0.13.23, Nextcloud from 26 before 26.0.13.20, Nextcloud from 27 before 27.1.11.20 and 5 more, per the CVE record by mitre. The tables above give every range the sources list.
Which version fixes CVE-2025-59788?
22.2.10.33, 23.0.12.29, 24.0.12.28, 25.0.13.23, 26.0.13.20 and 27.1.11.20, per the CVE record by mitre. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-59788?
Medium (6.4, CVSS 3.1, from mitre). The severity table above shows each score with its source.
Where is the official record of CVE-2025-59788?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.