# Craft CMS stored XSS in settings names and field options

Source: https://junglewise.ai/threats/craft-cms-stored-xss-in-settings-names-and-field-options-ae3644a3  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-21. Updated: 2026-08-06  
License: CC BY 4.0 with a link back

Severity: medium · CVSS 4.8 · Published 2026-06-21

Craft CMS, a popular content management system, is vulnerable to a security flaw where malicious code can be hidden within administrative settings like section names or field labels. An attacker with administrative access could use this to target other staff members, potentially stealing their session information or performing unauthorized actions on their behalf. This issue is resolved in the latest software updates.

Technologies: [craftcms/cms (Packagist)](https://junglewise.ai/threats/technologies/craftcms-cms). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Medium severity, with a CVSS score of 4.8, published 21 June 2026.

**Which products and versions are affected?** craftcms/cms (Packagist) >= 5.0.0-RC1, < 5.9.0-beta.1.

**Is there a fix for This vulnerability?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is This vulnerability attacked?** It is attacked over the network, in a network appliance.

**Am I affected?** Check whether you run craftcms/cms (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

Multiple stored cross-site scripting (XSS) vulnerabilities exist in Craft CMS due to improper output sanitization in Twig templates, specifically the use of the '|raw' filter in 'checkbox.twig' and other components. An authenticated administrator with 'allowAdminChanges' enabled can inject malicious payloads into section names, volume names, user group names, global set names, and field option labels. These payloads are executed when other users view the affected control panel pages, such as user permissions or field settings. The vulnerability is fixed in versions 4.17.0-beta.1 and 5.9.0-beta.1.

## Affected products

- Pixel & Tonic Craft CMS >= 4.0.0-RC1, < 4.17.0-beta.1; >= 5.0.0-RC1, < 5.9.0-beta.1

## Timeline

- 2026-03-02: advisory: Original advisory GHSA-4mgv-366x-qxvx published
- 2026-06-21: disclosed: Duplicate advisory GHSA-f95g-vm94-46c3 published
- 2026-08-06: other: Advisory withdrawn as a duplicate

## References

- [https://github.com/craftcms/cms/security/advisories/GHSA-4mgv-366x-qxvx](https://github.com/craftcms/cms/security/advisories/GHSA-4mgv-366x-qxvx)
- [https://github.com/craftcms/cms/commit/67780a778c6ec04e68e64a0b1177c168306144a2](https://github.com/craftcms/cms/commit/67780a778c6ec04e68e64a0b1177c168306144a2)
- [https://github.com/craftcms/cms/commit/943152d2246b36f12adf161a03b8695b773d9276](https://github.com/craftcms/cms/commit/943152d2246b36f12adf161a03b8695b773d9276)
- [https://www.vulncheck.com/advisories/craft-cms-multiple-stored-cross-site-scripting-in-settings-names-and-field-options](https://www.vulncheck.com/advisories/craft-cms-multiple-stored-cross-site-scripting-in-settings-names-and-field-options)

## Related threats

- [Craft CMS: Stored XSS in the control panel via unescaped draft name](https://junglewise.ai/threats/cve-2026-72787-craft-cms-stored-xss-in-the-control-panel-via-unescaped-draft)
- [Craft CMS: Arbitrary user password reset leading to administrator account takeover](https://junglewise.ai/threats/cve-2026-72786-craft-cms-arbitrary-user-password-reset-leading-to-administrator)
- [Craft CMS authorization bypass in category structure modification](https://junglewise.ai/threats/craft-cms-authorization-bypass-in-category-structure-modification-1555f980)
- [Craft CMS authenticated RCE through Twig sandbox escape](https://junglewise.ai/threats/craft-cms-authenticated-rce-through-twig-sandbox-escape-32ee5ec1)
- [Craft CMS path traversal in ensurePathIsContained](https://junglewise.ai/threats/craft-cms-path-traversal-in-ensurepathiscontained-4adc3058)
