The filename of uploaded files vulnerable to stored XSS
Impact
The filename of uploaded files was vulnerable to stored XSS. It is not possible to inject javascript code in the file name when creating/uploading the file. But, once created/uploaded, it can be renamed to inject the payload in it.
Additionally, the measures to prevent renaming the file to disallowed filename extensions could be circumvented.
Patches
This is fixed in Bolt 3.7.1.
References
Related issue: https://github.com/bolt/bolt/pull/7853
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | bolt/bolt | < 3.7.1 | 3.7.1 |
References
- https://github.com/bolt/bolt/security/advisories/GHSA-68q3-7wjp-7q3j
- https://nvd.nist.gov/vuln/detail/CVE-2020-4041
- https://github.com/bolt/bolt/pull/7853
- https://github.com/bolt/bolt/commit/b42cbfcf3e3108c46a80581216ba03ef449e419f
- https://github.com/bolt/bolt
- http://packetstormsecurity.com/files/158299/Bolt-CMS-3.7.0-XSS-CSRF-Shell-Upload.html
- http://seclists.org/fulldisclosure/2020/Jul/4
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N- Weakness (CWE)
CWE-79- Platform
- Composer
- Package
bolt/bolt- Disclosed
- 09.06.2020
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-68q3-7wjp-7q3j - CC BY 4.0
Vulnerability history: bolt/bolt
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 15
- First → latest
- 11.2019 07.2025
- Without a fix
- 5
- Exploited in attacks
- 0
Severity breakdown
- High 5
- Medium 10
Disclosures per year
- 2019: 1
- 2020: 2
- 2021: 1
- 2022: 9
- 2023: 0
- 2024: 1
- 2025: 1
- 2026: 0
-
The filename of uploaded files vulnerable to stored XSS this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.