A cross-site scripting (XSS) vulnerability exists in a reachable files_pdfviewer example directory in Nextcloud versions prior to 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. This vulnerability allows attackers to execute arbitrary JavaScript in the context of a user's browser by using a crafted PDF file targeting viewer.html. The root cause is the exposure of executable example code on a same-origin basis. The CVSS score is 6.4, indicating a medium severity level.