CVE-2026-55790
JSON

7.4high

Craft CMS: DOM XSS via GitHub issue title in CraftSupport widget

Severity
7.4high CVSS:4.0 by GitHub_M
Exploit likelihood
0.31% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-24x4-j6x9-rfw5

Description

Craft CMS is a content management system (CMS). In versions 5.0.0-RC1 through 5.9.22 and 4.0.0-RC1 through 4.17.15, an attacker with only a GitHub account can plant a JavaScript payload in a craftcms/cms issue title. When a Craft admin uses the CraftSupport widget’s "Give feedback" screen and types a search term that returns the poisoned issue, the payload executes in the admin’s control panel session. No control panel account or elevated privileges are required on the attacker’s side. This issue has been fixed in versions 4.17.16 and 5.9.23.

Affected

Product or packageVersionsReported by
craftcms cms>= 5.0.0-RC1, < 5.9.23, >= 4.0.0-RC1, < 4.17.16CVE List
craftcms/cms (Packagist)from 5.0.0-RC1 before 5.9.23, from 4.0.0-RC1 before 4.17.16GitHub Advisory Database

All scores

GitHub_M7.4high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Classification

CWE-79

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

What each source says

CVE List

Craft CMS is a content management system (CMS). In versions 5.0.0-RC1 through 5.9.22 and 4.0.0-RC1 through 4.17.15, an attacker with only a GitHub account can plant a JavaScript payload in a craftcms/cms issue title. When a Craft admin uses the CraftSupport widget’s "Give feedback" screen and types a search term that returns the poisoned issue, the payload executes in the admin’s control panel session. No control panel account or elevated privileges are required on the attacker’s side. This issue has been fixed in versions 4.17.16 and 5.9.23.

GitHub Advisory Database

Summary

An attacker with only a GitHub account can plant a JavaScript payload in a craftcms/cms issue title. When a Craft admin uses the CraftSupport widget’s "Give feedback" screen and types a search term that returns the poisoned issue, the payload executes in the admin’s control panel session.

No control panel account or elevated privileges are required on the attacker’s side.

Preconditions

  • Attacker has a GitHub account (no control panel access needed).
  • Victim is an administrator, and you have the CraftSupport widget on the dashboard.
  • Victim uses the "Give feedback" screen and types a search term that returns the poisoned issue.

Root cause

CraftSupportWidget.js lines 382-392:

$('<a>', {
  href: this.getSearchResultUrl(results[i]),
  target: '_blank',
  html:
    '<span class="status ' +
    this.getSearchResultStatus(results[i]) +
    '"></span>' +
    this.getSearchResultText(results[i]),
})

FeedbackScreen.getSearchResultText (line 669-671) returns result.title verbatim from the GitHub API response. The jQuery html: option sets the element’s innerHTML, so a title containing <img src=x onerror=...> executes immediately on render.

The GitHub API returns issue titles as raw JSON strings with no HTML encoding. The widget makes this request directly from the browser, without a Craft proxy or any sanitization step.

HelpScreen (Stack Exchange) is not affected because the Stack Exchange API HTML-encodes titles before returning them.

Steps to reproduce

Plant (attacker, GitHub account only):

  1. Open https://github.com/craftcms/cms/issues/new.
  2. Set the title to a string combining a plausible search term and the payload, e.g.:
<img src=x onerror=alert(document.domain)> cannot upload files
  1. Submit the issue.

Trigger (victim, Craft admin):

  1. Open the Craft control panel dashboard.
  2. Open the CraftSupport widget, click "Give feedback".
  3. Type cannot upload files in the search box.
  4. alert(document.domain) fires in the admin's session.

Impact

XSS in the admin control panel session. The payload has access to Craft.csrfTokenName and Craft.csrfTokenValue and can send same-origin action requests as the admin without any further interaction.

Mitigating factors

  • Victim must actively use the "Give feedback" search screen.
  • Attacker must predict or social-engineer a search term the admin will type, or use a broad term likely to match.
  • Widget is only available to admins.

Resources

https://github.com/craftcms/cms/commit/6bbb66038a268552180ca5c8eed9f46ea25a4417

NVD (es)

Craft CMS es un sistema de gestión de contenido (CMS). En las versiones 5.0.0-RC1 hasta 5.9.22 y 4.0.0-RC1 hasta 4.17.15, un atacante con solo una cuenta de GitHub puede insertar una carga útil de JavaScript en el título de una incidencia de craftcms/cms. Cuando un administrador de Craft utiliza la pantalla ’Give feedback’ del widget CraftSupport y escribe un término de búsqueda que devuelve la incidencia envenenada, la carga útil se ejecuta en la sesión del panel de control del administrador. No se requiere una cuenta del panel de control ni privilegios elevados por parte del atacante. Esta incidencia ha sido corregida en las versiones 4.17.16 y 5.9.23.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-55790 changed 2026-07-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-24x4-j6x9-rfw5 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-55790 changed 2026-10-25Public domain