CVE-2025-59788
published medium CVSS 3.1 · 6.4Nextcloud: Cross-site scripting (XSS) in PDF viewer allows arbitrary JavaScript execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Nextcloud | — | Nextcloud0 to < 22.2.10.33 · 23 to < 23.0.12.29 · 24 to < 24.0.12.28 · 25 to < 25.0.13.23 · 26 to < 26.0.13.20 · 27 to < 27.1.11.20 · 28 to < 28.0.14.11 · 29 to < 29.0.16.8 · 30 to < 30.0.17 · 31 to < 31.0.10 · 32 to < 32.0.1 · Other versions: unaffected | Affected | Not stated | mitre |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.4 / 10
- Severity
- medium
- Provider
- mitre · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Nextcloud | Nextcloud | 0 to < 22.2.10.33 (affected · custom)23 to < 23.0.12.29 (affected · custom)24 to < 24.0.12.28 (affected · custom)25 to < 25.0.13.23 (affected · custom)26 to < 26.0.13.20 (affected · custom)27 to < 27.1.11.20 (affected · custom)28 to < 28.0.14.11 (affected · custom)29 to < 29.0.16.8 (affected · custom)30 to < 30.0.17 (affected · custom)31 to < 31.0.10 (affected · custom)32 to < 32.0.1 (affected · custom)Default: unaffected | mitre · cna |
Weaknesses
1- CWE-749 CWE-749 Exposed Dangerous Method or Function
References
3Provider assertions
2mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ee6a8e0a527bccd4a3775b0bcf71c3a4533a887d16625c96847001cbc6772761
- Ingested
- 23 Sep 2026, 08:54:20 UTC
- Source record
- Official CVE record