CVE-2026-142156
Description
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 expand_thumbnail() function decodes the file name with decodeURIComponent and inserts it via jQuery .html(), executing script when any user, including administrators, clicks the thumbnail.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
References
- https://github.com/saltcorn/saltcorn/blob/v1.7.0-beta.5/packages/saltcorn-data/base-plugin/fileviews.ts#L560-L590
- https://github.com/saltcorn/saltcorn/blob/v1.7.0-beta.5/packages/saltcorn-data/models/file.ts#L1050-L1062
- https://github.com/saltcorn/saltcorn/blob/v1.7.0-beta.5/packages/server/public/saltcorn.js#L431-L438
- https://www.vulncheck.com/advisories/saltcorn-through-1.7.0-beta.5-stored-dom-xss-via-uploaded-file-name-in-thumbnail
CWEs
CWE-79
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.