{"id":"CVE-2025-59788","aliases":["CVE-2025-59788"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site scripting (XSS) vulnerability in a reachable filespdfviewer example directory in Nextcloud with versions before 22.2.10.33, 23.0…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Vulnerabilidad de cross-site scripting (XSS) en un directorio de ejemplo files_pdfviewer accesible en Nextcloud con versiones anteriores a 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 y 32.0.1 permite a los atacantes ejecutar JavaScript arbitrario en el contexto del navegador de un usuario a través de un archivo PDF manipulado a viewer.html. Este problema está relacionado con CVE-2024-4367, pero la causa raíz de este problema de Nextcloud es que el producto expone código de ejemplo ejecutable sobre una base de mismo origen.","source":"nvd"}],"published":"2025-12-04T00:00:00.000Z","modified":"2026-10-18T15:10:00.097Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-749"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"22.2.10.33","status":"affected"},{"type":"custom","introduced":"23","fixed":"23.0.12.29","status":"affected"},{"type":"custom","introduced":"24","fixed":"24.0.12.28","status":"affected"},{"type":"custom","introduced":"25","fixed":"25.0.13.23","status":"affected"},{"type":"custom","introduced":"26","fixed":"26.0.13.20","status":"affected"},{"type":"custom","introduced":"27","fixed":"27.1.11.20","status":"affected"},{"type":"custom","introduced":"28","fixed":"28.0.14.11","status":"affected"},{"type":"custom","introduced":"29","fixed":"29.0.16.8","status":"affected"},{"type":"custom","introduced":"30","fixed":"30.0.17","status":"affected"},{"type":"custom","introduced":"31","fixed":"31.0.10","status":"affected"},{"type":"custom","introduced":"32","fixed":"32.0.1","status":"affected"}],"vendor":"Nextcloud","product":"Nextcloud","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"30.0.0","fixed":"30.0.17"},{"status":"affected","introduced":"31.0.0","fixed":"31.0.10"},{"status":"affected","introduced":"32.0.0","fixed":"32.0.1"},{"status":"affected","introduced":"22.0.0","fixed":"22.2.10.33"},{"status":"affected","introduced":"23.0.0","fixed":"23.0.12.29"},{"status":"affected","introduced":"24.0.0","fixed":"24.0.12.28"},{"status":"affected","introduced":"25.0.0","fixed":"25.0.13.23"},{"status":"affected","introduced":"26.0.0","fixed":"26.0.13.20"},{"status":"affected","introduced":"27.0.0","fixed":"27.1.11.20"},{"status":"affected","introduced":"28.0.0","fixed":"28.0.14.11"},{"status":"affected","introduced":"29.0.0","fixed":"29.0.16.8"},{"status":"affected","introduced":"30.0.0","fixed":"30.0.17"},{"status":"affected","introduced":"31.0.0","fixed":"31.0.10"},{"status":"affected","introduced":"32.0.0","fixed":"32.0.1"}],"vendor":"nextcloud","product":"nextcloud_server","cpe":"cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:-:*:*:*","source":"nvd"}],"references":[{"url":"https://nextcloud.com","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://www.redteam-pentesting.de/en/advisories/rt-sa-2025-003/","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nextcloud/security-advisories/security/advisories/GHSA-24wp-p865-7j4r","tags":["mitigation","vendor-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-12-05T17:20:13.836Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59788","url":"https://www.cve.org/CVERecord?id=CVE-2025-59788","licence":"CVE Terms of Use","modified":"2025-12-11T15:04:25.726Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59788","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59788","licence":"Public domain","modified":"2026-10-18T15:10:00.097Z"}],"updatedAt":"2026-11-25T22:59:08.291Z","epss":{"score":0.00324,"percentile":0.27438,"date":"2026-12-01T12:00:22.000Z"}}