CVE-2026-72787 Craft CMS 5.0.0-RC1 before 5.10.8 Stored XSS via Draft Name

Medium 5.1 Published Updated

Low-privilege users can inject JavaScript via draft names, leading to account takeover of higher-privileged users in Craft CMS.

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
None listed

What is CVE-2026-72787?

CVE-2026-72787 is a medium-severity cross-site scripting vulnerability in craftcms cms, published on 12 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Craft CMS versions before 5.10.8 contain a stored cross-site scripting vulnerability in the control panel where draft names are rendered without HTML encoding in element chips and cards. A low-privilege user who can create element drafts can inject malicious JavaScript that executes in the browser of any higher-privileged user viewing the affected element, allowing account creation and other authenticated actions.

Weakness: CWE-79

Which versions are affected by CVE-2026-72787?

2 open source packages ship an affected version, including craftcms/cms.

PackageAffectedFixed in
craftcms/cms PackagistFrom 5.0.0-RC15.10.8
craftcms/cms PackagistFrom 5.0.0-RC15.10.8

How do I fix CVE-2026-72787?

Upgrade craftcms/cms to 5.10.8 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-72787 being exploited?

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

Sources

Also known as GHSA-2rp4-x2j7-qmcc, GHSA-xh8r-pv2v-rc22.

Is CVE-2026-72787 in your software?

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

Check your SBOMs for free