MediumGHSA-9mcw-mwxv-grwjCVE-2017-8384
Craft CMS XSS Vulnerability
Published 17 May 2022 · Updated 16 Feb 2024
Affected package
craftcms/cmsComposer
- Affected
- <2.6.2976
- Fixed in
- 2.6.2976
Update to the fixed version for your release line, for example:
composer require craftcms/cms:^2.6.2976Details
Craft CMS before 2.6.2976 allows XSS attacks because an array returned by HttpRequestService::getSegments() and getActionSegments() need not be zero-based. NOTE: this vulnerability exists because of an incomplete fix for CVE-2017-8052.
Is GHSA-9mcw-mwxv-grwj in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected craftcms/cms, and gives you the command that fixes it.
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.