# Mautic vulnerable to Relative Path Traversal / Arbitrary File Deletion due to GrapesJS builder

Advisory record · `GHSA-9fcx-cv56-w58p`

- **Identifiers:** `GHSA-9fcx-cv56-w58p` · `CVE-2021-27916` · `PKSA-xg8c-5dhf-6tcn`
- **State:** Confirmed
- **Severity:** CVSS 8.1 High
- **Critical:** No
- **Weakness (CWE):** [CWE-22](https://cwe.mitre.org/data/definitions/22.html) · [CWE-23](https://cwe.mitre.org/data/definitions/23.html)
- **Tags:** [Path traversal](https://agentprime.io/advisories/tag/path-traversal.md)
- **Published:** 12 Apr 2024
- **Updated:** 2 Oct 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 12 Apr 2024, 17:07 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `mautic/core` (Packagist): affected `>=3.3.0, <4.4.12 || >=5.0.0-alpha, <5.0.4`; fixed in `4.4.12`, `5.0.4`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Mautic (mautic/core) versions 3.3.0 up to 4.4.12 and 5.0.0-alpha up to 5.0.4 are vulnerable. A logged-in user of any access level can exploit a relative path traversal in the GrapesJS builder to delete arbitrary files outside the media folders, including system files and libraries. Upgrade to 4.4.12 or 5.0.4. No workaround is listed.

Written 4 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.1 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`, from CNA (Mautic)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0080, the 57th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:29 UTC: First seen by agentprime
- 31 Oct 2026, 14:29 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-9fcx-cv56-w58p)

## Sources

- [GitHub Advisory Database: GHSA-9fcx-cv56-w58p](https://github.com/advisories/GHSA-9fcx-cv56-w58p)
- [OSV: GHSA-9fcx-cv56-w58p](https://osv.dev/vulnerability/GHSA-9fcx-cv56-w58p)
- <https://github.com/mautic/mautic/security/advisories/GHSA-9fcx-cv56-w58p>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27916>
- <https://github.com/mautic/mautic/commit/546045ff9c74dd8b3dac36c4ab3674380262c65a>
- <https://github.com/mautic/mautic/commit/95e8df3ae6730c725f1848d70e7992da369518f3>
- <https://github.com/mautic/mautic>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-9fcx-cv56-w58p>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-9fcx-cv56-w58p/>. Everything for agents: <https://agentprime.io/llms.txt>.
