npm
CVE-2026-142156
Saltcorn through 1.7.0-beta.5 Stored DOM XSS via Uploaded File Name in Thumbnail
- Severity
- Medium 5.1
- Published
- 2 Dec 2026
- Last changed
- 2 Dec 2026
- Added to UpHeron
- 2 Dec 2026
- Weakness
- Cross-site scripting (CWE-79)
- Attack
- Over the network · Needs a user account · Needs someone to view a page or file
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N- Sources
- CVE Program
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.
Affected software
| Software | Affected versions |
|---|---|
@saltcorn/servernpm · osv:npm:@saltcorn/server |
|
About @saltcorn/server
- Weekly downloads (npm)
- 2,076npm, 2 Dec 2026
This is the only vulnerability in @saltcorn/server in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142156