Cross-site scripting in October CMS - #VU158938
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary JavaScript in a backend user's browser within the backend origin.
The vulnerability exists due to improper neutralization of client-supplied filename extensions in OctoberRainDatabaseAttachFile::getDiskName() when generating attachment disk names that downstream renderers concatenate into HTML attributes without encoding. A remote user can upload a valid PNG with a crafted filename such as avatar.x" onerror="document.title=1337 to execute JavaScript when a backend user views a page that renders the attachment URL without escaping.