MediumGHSA-f546-v666-559xCVE-2022-37246

Craft CMS Cross-site Scripting vulnerability

Published 22 Sept 2022 · Updated 17 Feb 2024

Affected packages

craftcms/cmsComposer
Affected
>=4.0.0-RC1 <4.2.1
Fixed in
4.2.1
Update to the fixed version for your release line, for example:composer require craftcms/cms:^4.2.1
craftcms/cmsComposer
Affected
>=3.7.39 <3.7.51
Fixed in
3.7.51
Update to the fixed version for your release line, for example:composer require craftcms/cms:^3.7.51

Details

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.

Is GHSA-f546-v666-559x 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.