Intel

AIKIDO-2026-10049

craftcms/cms is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS)GHSA-9f5h-mmq6-2x78

55

Medium Risk

This Affects:

PHPcraftcms/cms
3.5.0 - 4.16.17
Fixed in 4.16.18
5.0.0 - 5.8.21
Fixed in 5.8.22

TL;DR

Affected versions of this package are vulnerable to cross-site scripting because user-controlled values could be rendered into HTML output without proper encoding, allowing injected markup or script content to execute in a victim’s browser. In Craft CMS, this meant that crafted input could be reflected or stored and then executed when affected templates or views were rendered. The referenced commit fixes the issue by ensuring that untrusted data is correctly escaped before being included in HTML output, preventing script execution in the user’s browser.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

craftcms/cms is vulnerable to Cross-site Scripting (XSS) in versions 3.5.0 - 4.16.17 and 5.0.0 - 5.8.21.

How to fix this

Upgrade the craftcms/cms library to the patch version.