# CVE-2026-142156: Saltcorn through 1.7.0-beta.5 Stored DOM XSS via Uploaded File Name in Thumbnail

Source: https://aplosec.si/cve/CVE-2026-142156/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142156

Medium 5.1 · Reported · No fix listed · CWE-79 · npm

# Saltcorn through 1.7.0-beta.5 Stored DOM XSS via Uploaded File Name in Thumbnail

CVE-2026-142156 · published 2026-12-02

In plain words: this type of bug lets someone run scripts in another person's browser (cross-site scripting, XSS). No fixed release is listed yet.

## Summary

CVE-2026-142156 affects @saltcorn/server (npm) <= 1.7.0-beta.5: Stored DOM XSS via Uploaded File Name in Thumbnail (CWE-79). No fixed release is listed. CVSS 4.0 base score 5.1 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/saltcorn-through-1.7.0-beta.5-stored-dom-xss-via-uploaded-file-name-in-thumbnail](https://www.vulncheck.com/advisories/saltcorn-through-1.7.0-beta.5-stored-dom-xss-via-uploaded-file-name-in-thumbnail)

- [Vulnerable codehttps://github.com/saltcorn/saltcorn/blob/v1.7.0-beta.5/packages/server/public/saltcorn.js#L431-L438](https://github.com/saltcorn/saltcorn/blob/v1.7.0-beta.5/packages/server/public/saltcorn.js#L431-L438)

- [Vulnerable codehttps://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/base-plugin/fileviews.ts#L560-L590)

- [Vulnerable codehttps://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/saltcorn-data/models/file.ts#L1050-L1062)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142156](https://www.cve.org/CVERecord?id=CVE-2026-142156)

**Severity:** Medium 5.1 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142156)

**Package:** @saltcorn/server

**Ecosystem:** npm

**Affected:** <= 1.7.0-beta.5

**Fixed:** None

**Weakness:** CWE-79

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
