MediumGHSA-mw37-wx8p-gp45CVE-2022-37251

Craft CMS vulnerable to Cross-site Scripting via entry revisions and drafts

Published 17 Sept 2022 · Updated 21 Feb 2024

Affected packages

craftcms/cmsComposer
Affected
>=3.7.0-beta.1 <3.7.55.2
Fixed in
3.7.55.2
Update to the fixed version for your release line, for example:composer require craftcms/cms:^3.7.55.2
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

Details

Craft CMS 3.70-RC1–3.7.55.1 and 4.0.0-RC1–4.2.0.1 are vulnerable to Cross Site Scripting (XSS) via entry revisions and drafts. Versions 3.7.55.2 and 4.2.1 contain patches for this issue.

Is GHSA-mw37-wx8p-gp45 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.