CVE-2026-109304 Craft CMS 4.0.0 before 4.18.7 and 5.0.0 before 5.10.14 Arbitrary File Read via Twig create() DOMDocument

Medium 6.9 Published Updated

Attackers can read arbitrary local files by exploiting a missing blocklist for DOMDocument in Twig templates within Craft CMS.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-109304?

CVE-2026-109304 is a medium-severity path traversal vulnerability in craftcms cms, published on 12 Oct 2026. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Craft CMS 4.0.0 before 4.18.7 and 5.0.0 before 5.10.14 contains an arbitrary file read vulnerability because the Twig create() class blocklist does not cover DOMDocument. Attackers able to set an entry-type title format, including via project-config/apply, can use create('DOMDocument').loadHTMLFile() with textContent to expose local file contents to non-admin users who can view entries.

Weakness: CWE-200

Which versions are affected by CVE-2026-109304?

How do I fix CVE-2026-109304?

No fix has been published for CVE-2026-109304 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-109304 being exploited?

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

Sources

Also known as GHSA-52mh-mf22-cc6j, GHSA-j5wg-m2pr-35qc.

Is CVE-2026-109304 in your software?

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

Check your SBOMs for free