CVE-2025-13827 GrapesJsBuilder File Upload allows all file uploads

High 8.8 Published Updated

Attackers can upload arbitrary files via GrapesJS Builder, potentially achieving remote code execution if the media folder allows script execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-13827?

CVE-2025-13827 is a high-severity vulnerability in Mautic, published on 2 Dec 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Summary Arbitrary files can be uploaded via the GrapesJS Builder, as the types of files that can be uploaded are not restricted. ImpactIf the media folder is not restricted from running files this can lead to a remote code execution.

Weakness: CWE-434

Which versions are affected by CVE-2025-13827?

6 open source packages ship an affected version, including mautic/grapes-js-builder-bundle.

PackageAffectedFixed in
mautic/grapes-js-builder-bundle PackagistFrom 4.0.04.4.18
mautic/grapes-js-builder-bundle PackagistFrom 4.0.04.4.18
mautic/grapes-js-builder-bundle PackagistFrom 5.0.05.2.9
mautic/grapes-js-builder-bundle PackagistFrom 5.0.05.2.9
mautic/grapes-js-builder-bundle PackagistFrom 6.0.06.0.7
mautic/grapes-js-builder-bundle PackagistFrom 6.0.06.0.7

How do I fix CVE-2025-13827?

Upgrade mautic/grapes-js-builder-bundle to a fixed version for your release line: 4.4.18, 5.2.9 or 6.0.7.

Is CVE-2025-13827 being exploited?

There is no known exploitation of CVE-2025-13827 in the wild and no public exploit code.

Sources

Also known as GHSA-5xw2-57jx-pgjp.

Is CVE-2025-13827 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free