Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. CVE-2026-55792

CVE-2026-55792: Craft CMS: Sensitive File Disclosure / Server-Side File Read

July 6, 2026

The dataUrl() Twig function is included in Craft’s Twig sandbox allowlist, allowing any control panel user granted the utility:system-messages permission to embed a file-reading payload into system email templates. When those emails are sent, the server reads the target file and returns its contents as a base64-encoded data URL embedded in the email body. The .env file, which typically contains the database password, CRAFT_SECURITY_KEY, and third-party API keys, passes all of Craft’s existing dataUrl() protection checks and is fully exfiltrated. Obtaining CRAFT_SECURITY_KEY enables an attacker to forge session tokens and escalate to full admin account takeover.

References

  • github.com/advisories/GHSA-287w-mxq6-x2cp
  • github.com/craftcms/cms/pull/18559
  • github.com/craftcms/cms/security/advisories/GHSA-287w-mxq6-x2cp
  • nvd.nist.gov/vuln/detail/CVE-2026-55792

Code Behaviors & Features

Detect and mitigate CVE-2026-55792 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0-RC1 before 4.18.0, all versions starting from 5.0.0-RC1 before 5.10.0

Fixed versions

  • 4.18.0
  • 5.10.0

Solution

Upgrade to versions 4.18.0, 5.10.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

packagist/craftcms/cms/CVE-2026-55792.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 13 Jul 2026 00:20:08 +0000.