CVE-2025-59788: Nextcloud - Stored XSS
- Cve: CVE-2025-59788
- Name: Nextcloud - Stored XSS
- 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.
- Impact: Attackers can execute arbitrary JavaScript in users' browsers, potentially leading to session hijacking or other client-side attacks.
- Remediation: Update 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, 32.0.1 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: User must open crafted PDF file
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00324
- Epss percentile: 0.2567
- Assignee: [email protected]
- Published at: 2025-12-04T19:16:04Z
- Age in days: 355
- Modified at: 2026-10-18T15:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-59788
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
Cwe
| Id | Name |
|---|---|
| CWE-749 | Exposed Dangerous Method or Function |
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://www.redteam-pentesting.de/en/advisories/rt-sa-2025-003/ | nvd | 2025-12-04 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/nextcloud/security-advisories/security/advisories/GHSA-24wp-p865-7j4r | Mitigation, Vendor Advisory |
| https://www.redteam-pentesting.de/en/advisories/rt-sa-2025-003/ | Exploit, Third Party Advisory |
| https://nextcloud.com | Product |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| nextcloud:nextcloud_server | >= 32.0.0, < 32.0.1; >= 31.0.0, < 31.0.10; >= 30.0.0, < 30.0.17; >= 29.0.0, < 29.0.16.8; >= 28.0.0, < 28.0.14.11; >= 27.0.0, < 27.1.11.20; >= 26.0.0, < 26.0.13.20; >= 25.0.0, < 25.0.13.23; >= 24.0.0, < 24.0.12.28; >= 23.0.0, < 23.0.12.29; >= 22.0.0, < 22.2.10.33 | no | nvd | /v1/products/nextcloud/nextcloud_server |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| nextcloud/security-advisories | security_advisory | yes | /v1/repositories/nextcloud/security-advisories |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-12-04
- Remote: yes
- Authentication required: yes
- Hackerone reports: 1
- Exposed hosts: 110639
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since