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...
MediumCVSS 5.4
EPSS 0.32%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| nextcloud | < 22.2.10.33; >= 23, < 23.0.12.29; >= 24, < 24.0.12.28; >= 25, < 25.0.13.23 +7 more | 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 | Fixed |
| nextcloud server | >= 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 +7 more | 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 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nextcloud | < 22.2.10.33 | 22.2.10.33 |
| nextcloud | >= 23, < 23.0.12.29 | 23.0.12.29 |
| nextcloud | >= 24, < 24.0.12.28 | 24.0.12.28 |
| nextcloud | >= 25, < 25.0.13.23 | 25.0.13.23 |
| nextcloud | >= 26, < 26.0.13.20 | 26.0.13.20 |
| nextcloud | >= 27, < 27.1.11.20 | 27.1.11.20 |
| nextcloud | >= 28, < 28.0.14.11 | 28.0.14.11 |
| nextcloud | >= 29, < 29.0.16.8 | 29.0.16.8 |
| nextcloud | >= 30, < 30.0.17 | 30.0.17 |
| nextcloud | >= 31, < 31.0.10 | 31.0.10 |
| nextcloud | >= 32, < 32.0.1 | 32.0.1 |
| nextcloud server | >= 30.0.0, < 30.0.17 | 30.0.17 |
| nextcloud server | >= 31.0.0, < 31.0.10 | 31.0.10 |
| nextcloud server | >= 32.0.0, < 32.0.1 | 32.0.1 |
| nextcloud server | >= 22.0.0, < 22.2.10.33 | 22.2.10.33 |
| nextcloud server | >= 23.0.0, < 23.0.12.29 | 23.0.12.29 |
| nextcloud server | >= 24.0.0, < 24.0.12.28 | 24.0.12.28 |
| nextcloud server | >= 25.0.0, < 25.0.13.23 | 25.0.13.23 |
| nextcloud server | >= 26.0.0, < 26.0.13.20 | 26.0.13.20 |
| nextcloud server | >= 27.0.0, < 27.1.11.20 | 27.1.11.20 |
| nextcloud server | >= 28.0.0, < 28.0.14.11 | 28.0.14.11 |
| nextcloud server | >= 29.0.0, < 29.0.16.8 | 29.0.16.8 |
References
- nextcloud.com product
- www.redteam-pentesting.de exploit third-party-advisory
- github.com mitigation vendor-advisory