MEDIUM5.4
GHSA-mw37-wx8p-gp45
Craft CMS vulnerable to Cross-site Scripting via entry revisions and drafts
Quick fix
GHSA-mw37-wx8p-gp45 — craftcms/cms: upgrade to the fixed version with the command below.
composer require craftcms/cms:^3.7.55.2Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/craftcms/cms
Introduced in:
3.7.0-beta.1Fixed in: 3.7.55.2Fix
composer require craftcms/cms:^3.7.55.2Packagist/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-37251[ADVISORY]
- https://github.com/craftcms/cms/commit/7139213dbd9e177a3528aac8e2db8de91830f118[WEB]
- https://github.com/craftcms/cms/commit/919c9074ff8596bf30a629b0888c529793e9a903[WEB]
- https://github.com/craftcms/cms/commit/f0d9b8a1e3ac005a2418f7d3d9059b49a96e73ea[WEB]
- https://github.com/craftcms/cms[PACKAGE]
- https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#421---2022-08-09[WEB]
- https://labs.integrity.pt/advisories/cve-2022-37251[WEB]
- http://craft.com[WEB]