CVE-2025-13827: Mautic/grapes js builder bundle GrapesJsBuilder File Upload Allows All Vulnerability

HIGH
Advisory Identifier: GHSA-5xw2-57jx-pgjp
CWE-434
Published
Advisory Summary

CVE-2025-13827 is a HIGH grapesjsbuilder file upload allows all vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Mautic/grapes js builder bundle libraries in the Packagist ecosystem. The issue involves grapesjsbuilder file upload allows all file uploads. Remediation is available by upgrading affected packages to version 4.4.18, 5.2.9, 6.0.7.

CVE-2025-13827 at a Glance

CVE Identifier CVE-2025-13827
GHSA Identifier GHSA-5xw2-57jx-pgjp
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Mautic/grapes js builder bundle
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2025-13827

To remediate this vulnerability, upgrade all affected Mautic/grapes js builder bundle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mautic/grapes-js-builder-bundle fixed: 4.4.18
Upgrade mautic/grapes-js-builder-bundle to 4.4.18
mautic/grapes-js-builder-bundle fixed: 5.2.9
Upgrade mautic/grapes-js-builder-bundle to 5.2.9
mautic/grapes-js-builder-bundle fixed: 6.0.7
Upgrade mautic/grapes-js-builder-bundle to 6.0.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for mautic/grapes-js-builder-bundle

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-13827, inspect your project dependencies for Mautic/grapes js builder bundle:

inspect dependencies for mautic/grapes-js-builder-bundle

Analyze the terminal output to locate any version of Mautic/grapes js builder bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.4.18), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Mautic/grapes js builder bundle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2025-13827 Affected Mautic/grapes js builder bundle Versions

3 component(s)
Fixed Versions:
4.4.185.2.96.0.7
Product / Package Ecosystem Affected Versions Fixed Version
mautic/grapes-js-builder-bundle
Packagist
≥ 4.0.0
< 4.4.18
4.4.18
mautic/grapes-js-builder-bundle
Packagist
≥ 5.0.0
< 5.2.9
5.2.9
mautic/grapes-js-builder-bundle
Packagist
≥ 6.0.0
< 6.0.7
6.0.7

References

Frequently Asked Questions

What is CVE-2025-13827?
CVE-2025-13827 is a security vulnerability in Mautic/grapes js builder bundle involving GrapesJsBuilder File Upload allows all file uploads under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Mautic/grapes js builder bundle versions are affected?
Affected versions include releases prior to 4.4.18, 5.2.9, 6.0.7 across affected packages: mautic/grapes-js-builder-bundle.
What version fixes CVE-2025-13827?
Upgrading to 4.4.18, 5.2.9, 6.0.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mautic/grapes-js-builder-bundle affected?
Yes, mautic/grapes-js-builder-bundle is affected in releases prior to 4.4.18, 5.2.9, 6.0.7. Upgrade your dependency to 4.4.18, 5.2.9, 6.0.7 or later.
What CWE is associated with CVE-2025-13827?
CVE-2025-13827 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check Packagist dependencies for CVE-2025-13827?
Run the dependency tree command: 'inspect dependencies for mautic/grapes-js-builder-bundle'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5xw2-57jx-pgjp",
  "modified" : "2025-12-02T21:11:33Z",
  "published" : "2025-12-02T21:11:33Z",
  "aliases" : [ "CVE-2025-13827" ],
  "summary" : "GrapesJsBuilder File Upload allows all file uploads",
  "details" : "### Summary\n\nArbitrary files can be uploaded via the GrapesJS Builder, as the types of files that can be uploaded are not restricted. \n\n### Impact\n\nIf the media folder is not restricted from running files this can lead to a remote code execution.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mautic/grapes-js-builder-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.4.18"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mautic/grapes-js-builder-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.2.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mautic/grapes-js-builder-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "6.0.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mautic/mautic/security/advisories/GHSA-5xw2-57jx-pgjp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-13827"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mautic/mautic"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-434" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-02T21:11:33Z",
    "nvd_published_at" : "2025-12-02T17:16:03Z"
  }
}