MEDIUM5.4
GHSA-f546-v666-559x
Craft CMS Cross-site Scripting vulnerability
Quick fix
GHSA-f546-v666-559x — craftcms/cms: upgrade to the fixed version with the command below.
composer require craftcms/cms:^4.2.1Details
Craft CMS 4.2.0.1 is affected by Cross Site Scripting (XSS) in the file src/web/assets/cp/src/js/BaseElementSelectInput.js and in specific on the line `label: elementInfo.label`.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/craftcms/cms
Introduced in:
4.0.0-RC1Fixed in: 4.2.1Fix
composer require craftcms/cms:^4.2.1References
- https://nvd.nist.gov/vuln/detail/CVE-2022-37246[ADVISORY]
- https://github.com/craftcms/cms/commit/1d5fdba23c84d6d09a8a980c7b6fc52fb93b679b[WEB]
- https://github.com/craftcms/cms/commit/ecefe7f0afe0a6c4d1097a570cba82753d33f681[WEB]
- https://github.com/craftcms/cms[PACKAGE]
- https://labs.integrity.pt/advisories/cve-2022-37246[WEB]