{"id":"CVE-2025-59788","published":"2025-12-04T00:00:00Z","modified":"2025-12-11T15:04:25Z","title":"Cross-site scripting (XSS) vulnerability in a reachable files_pdfviewer example directory in Nextcloud with versions…","vendor":"Nextcloud","product":"Nextcloud","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00302,"percentile":0.22884,"provenance":"source"},"cwes":[{"id":"CWE-749","name":"Exposed Dangerous Method or Function"}],"references":[{"url":"https://nextcloud.com","tags":[]},{"url":"https://www.redteam-pentesting.de/en/advisories/rt-sa-2025-003/","tags":[]},{"url":"https://github.com/nextcloud/security-advisories/security/advisories/GHSA-24wp-p865-7j4r","tags":[]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":4.58},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"nextcloud","affectedVersions":[{"vendor":"Nextcloud","product":"Nextcloud","versions":["< 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"]}],"euvd":{"id":"EUVD-2025-201255","exploited":false,"provenance":"source"},"lineage":{"parents":[{"from":"CVE-2024-4367","to":"CVE-2025-59788","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"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":"CVE.org","in":"CVE-2025-59788"}]}]}}