CVE-2026-72787
JSON

5.1medium

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

Severity
5.1medium CVSS:4.0 by VulnCheck
Exploit likelihood
0.19% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-2rp4-x2j7-qmcc

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.

Affected

Product or packageVersionsReported by
craftcms cmsfrom 5.0.0-RC1 before 5.10.8
Not affected: 5.10.8
CVE List
craftcms/cms (Packagist)from 5.0.0-RC1 before 5.10.8GitHub Advisory Database

All scores

VulnCheck5.1medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
VulnCheck6.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

The control-panel helper that renders element chip/card labels writes an element's draftName into the page without HTML-encoding it, while the surrounding path segments are encoded.

A low-privilege control-panel user who can create a draft of an element (for example, an entry) controls the draft name, so they can store an XSS payload that executes in the browser of any other control-panel user who is shown that element’s chip or card (element indexes with drafts visible, relation and element-selection fields that reference the element, and the drafts list).

This allows a low-privilege author to run JavaScript in an administrator’s authenticated session and take over the control panel. It is the same output-encoding class as the recently fixed GHSA-xrqc-p465-2xvg (Structure entry title) and GHSA-3x4w-mxpf-fhqq (revision context menu), which encoded other user-controlled titles but not the draft name.

Prerequisites
  • A control-panel account with permission to edit entries in at least one section and create drafts.
  • A higher-privileged user (for example, an administrator) who is later shown the draft’s chip or card (an element index with drafts visible, or a relation/element-selection field referencing the element).
Limitations
  • Requires the victim to be shown the affected element's chip/card in the control panel (normal day-to-day activity; element indexes and relation fields are routine).
  • The payload runs in the control-panel origin in the victim’s session.

Impact

A low-privilege author can run arbitrary JavaScript in the session of any higher-privileged control-panel user who is shown the element’s chip or card, including administrators. This is a cross-privilege stored XSS, not a self-XSS: the attacker and the victim are different users, and the payload fires during routine browsing of element indexes and relation fields.

Because the script runs in the victim’s control-panel origin, it can read the CSRF token that Craft embeds in the page JavaScript (Craft.csrfTokenValue, confirmed present on control-panel pages) and issue authenticated control-panel actions as the victim. This was verified end-to-end on Craft Pro: an in-session request to the users/save-user action created a brand new account (User saved., HTTP 200), an admin-only capability that an author can never perform directly.

NVD (es)

Las versiones de Craft CMS anteriores a la 5.10.8 contienen una vulnerabilidad de cross-site scripting almacenado en el panel de control donde los nombres de los borradores se renderizan sin codificación HTML en los ’chips’ y tarjetas de elementos. Un usuario con privilegios bajos que puede crear borradores de elementos puede inyectar JavaScript malicioso que se ejecuta en el navegador de cualquier usuario con privilegios más altos que vea el elemento afectado, permitiendo la creación de cuentas y otras acciones autenticadas.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-72787 changed 2026-10-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-2rp4-x2j7-qmcc changed 2026-08-13CC-BY-4.0
NVDCVE-2026-72787 changed 2026-10-24Public domain