CVE-2025-59788: nextcloud Exposed Dangerous Method or Function
Vulnerability summary
CVE-2025-59788 is a medium (CVSS 6.4) Exposed Dangerous Method or Function vulnerability in nextcloud. EPSS estimates a 0.30% chance of exploitation in the next 30 days, higher than 21.5% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 04-12-2025PublishedVulnerability first disclosed.
- 11-12-2025Last modifiedVulnerability information updated.
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 metrics
2 scores · 2 sources · 1 version- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.30%
Chance of exploitation in the next 30 days
Percentile
22%
Versus all other CVEs
30-day change
0.00 pp
From 0.30% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (redteam-pentesting.de)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-749Exposed Dangerous Method or FunctionThe product provides an Applications Programming Interface (API) or similar interface for interaction with external actors, but the interface includes a dangerous method or function that is not properly restricted.
- CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected systems
Nextcloud2 products
- nextcloud< 22.2.10.33 | ≥ 23, < 23.0.12.29 | ≥ 24, < 24.0.12.28 | ≥ 25, < 25.0.13.23 | ≥ 26, < 26.0.13.20 | ≥ 27, < 27.1.11.20 | ≥ 28, < 28.0.14.11 | ≥ 29, < 29.0.16.8 | ≥ 30, < 30.0.17 | ≥ 31, < 31.0.10 | ≥ 32, < 32.0.1
- nextcloud_server≥ 30.0.0, < 30.0.17 | ≥ 31.0.0, < 31.0.10 | ≥ 32.0.0, < 32.0.1 | ≥ 22.0.0, < 22.2.10.33 | ≥ 23.0.0, < 23.0.12.29 | ≥ 24.0.0, < 24.0.12.28 | ≥ 25.0.0, < 25.0.13.23 | ≥ 26.0.0, < 26.0.13.20 | ≥ 27.0.0, < 27.1.11.20 | ≥ 28.0.0, < 28.0.14.11 | ≥ 29.0.0, < 29.0.16.8
1 vendor · 2 products
References
3 links- nextcloud.comProduct
- github.com/nextcloud/security-advisories/security/advisories/GHSA-24wp-p865-7j4rMitigationVendor Advisory