Intel

AIKIDO-2025-10300

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

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

41

Medium Risk

This Affects:

phpcraftcms/cms
3.1.1 - 4.15.2
Fixed in 4.15.3
5.0.0 - 5.7.4
Fixed in 5.7.5

TL;DR

Affected versions of this package are vulnerable to client-side injection attacks due to unsanitized return URLs stored in the user session. An attacker could craft a malicious URL and pass it as the returnUrl parameter, which would then be stored in the session and later used for rendering. If the application blindly trusts this URL, it could lead to arbitrary JavaScript execution or trick users into visiting a malicious site.

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.1.1 - 4.15.2 and 5.0.0 - 5.7.4.

How to fix this

Upgrade the craftcms/cms library to the patch version.