CVE-2026-142156: Saltcorn through 1.7.0-beta.5 Stored DOM XSS via Uploaded File Name in Thumbnail
Saltcorn through 1.7.0-beta.5 contains a stored DOM-based cross-site scripting vulnerability that allows authenticated users to inject script by uploading files with percent-encoded HTML names. The expandthumbnail() function decodes the file name with decodeURIComponent and inserts it via jQuery .html(), executing script when any user, including administrators, clicks the thumbnail.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue, and what interaction is required?
An authenticated user can upload a file whose name contains percent-encoded HTML or script content. The injected script executes when another user, including an administrator, clicks that file's thumbnail.
Are administrators exposed even if they did not upload the file?
Yes. Any user who clicks the thumbnail of a maliciously named uploaded file can trigger the stored DOM XSS, including administrators.
How can I determine whether my instance may be affected?
Instances running Saltcorn through 1.7.0-beta.5 may be affected. Review uploaded filenames for percent-encoded HTML-like content and treat thumbnails for suspicious files as potentially unsafe to open.