Information Exposure Affecting craftcms/cms package, versions >=4.0.0-RC1, <4.18.0>=5.0.0-RC1, <5.10.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.27% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-CRAFTCMSCMS-17872169
  • published6 Jul 2026
  • disclosed6 Jul 2026
  • creditUnknown

Introduced: 6 Jul 2026

NewCVE-2026-55792  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade craftcms/cms to version 4.18.0, 5.10.0 or higher.

Overview

craftcms/cms is a content management system.

Affected versions of this package are vulnerable to Information Exposure via the dataUrl function in Twig templates when a control panel user with the utility:system-messages permission embeds a file-reading payload into system email templates. An attacker can access sensitive server files, such as .env, by crafting malicious email templates that are rendered and sent by the system, resulting in the exfiltration of confidential information including database credentials and security keys. This is only exploitable if a non-admin user is granted the utility:system-messages permission and email sending is configured.

CVSS Base Scores

version 4.0
version 3.1