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.2craftcms/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.1Details
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
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-37251
- Linkgithub.com/craftcms/cms/commit/7139213dbd9e177a3528aac8e2db8de91830f118
- Linkgithub.com/craftcms/cms/commit/919c9074ff8596bf30a629b0888c529793e9a903
- Linkgithub.com/craftcms/cms/commit/f0d9b8a1e3ac005a2418f7d3d9059b49a96e73ea
- Packagegithub.com/craftcms/cms
- Linkgithub.com/craftcms/cms/blob/develop/CHANGELOG.md#421---2022-08-09
- Linklabs.integrity.pt/advisories/cve-2022-37251
- Linkcraft.com
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.