CVE-2026-31859: CraftCMS vulnerable to reflective XSS via incomplete return URL sanitization

medium Affects craftcms/cms. Feed 2026.10.29.3, updated 2026-10-29; published ; advisory modified .

CraftCMS vulnerable to reflective XSS via incomplete return URL sanitization

Package
craftcms/cms Composer
Affected versions
>=4.15.3 and <4.17.3 or >=5.7.5 and <5.9.7
Fixed in
4.17.3, 5.9.7
Severity
medium
Exploitation
not on CISA KEV · EPSS 0% (8.9th percentile)
Published
2026-03-11
Source
osv.dev

References

CWE-116CWE-79
NVD recordcraftcms/cms advisories

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 20,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked

Related advisories