CVE-2022-37251
Craft CMS vulnerable to Cross-site Scripting via entry revisions and drafts
Craft CMS 4.2.0.1 is vulnerable to Cross Site Scripting (XSS) via Drafts.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
5.4
Craft CMS 4.2.0.1 is vulnerable to Cross Site Scripting (XSS) via Drafts.
- Record
CVE-2022-37251- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
CVE List No score
Craft CMS 4.2.0.1 is vulnerable to Cross Site Scripting (XSS) via Drafts.
- Record
CVE-2022-37251- Updated
- 2026-11-02
EUVDEUVD-2022-6883 No score
Craft CMS 4.2.0.1 is vulnerable to Cross Site Scripting (XSS) via Drafts.
- Record
EUVD-2022-6883- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-mw37-wx8p-gp45
5.4
Craft CMS vulnerable to Cross-site Scripting via entry revisions and drafts
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.
- Record
GHSA-mw37-wx8p-gp45- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVGHSA-mw37-wx8p-gp45
5.4
Craft CMS vulnerable to Cross-site Scripting via entry revisions and drafts
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.
- Record
GHSA-mw37-wx8p-gp45- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV No score
Craft CMS 4.2.0.1 is vulnerable to Cross Site Scripting (XSS) via Drafts.
- Record
CVE-2022-37251- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
craftcms/cmsPackagist |
3.7.0-beta.1 up to 3.7.55.2 | 3.7.55.2 |
craftcms/cmsPackagist |
4.0.0-RC1 up to 4.2.1 | 4.2.1 |
craftcms/cmsPackagist |
3.7.0-beta.1 up to 3.7.55.2, plus listed versions 3.7.03.7.0-beta.23.7.0-beta.33.7.0-beta.43.7.0-beta.5 Show 45 moreShow less3.7.0-beta.63.7.13.7.103.7.113.7.123.7.133.7.143.7.153.7.163.7.173.7.17.13.7.17.23.7.183.7.18.13.7.18.23.7.193.7.19.13.7.23.7.203.7.213.7.223.7.233.7.243.7.253.7.25.13.7.263.7.273.7.27.13.7.27.23.7.283.7.293.7.33.7.3.13.7.3.23.7.303.7.30.13.7.313.7.323.7.333.7.343.7.353.7.363.7.373.7.383.7.39 |
3.7.55.2 |
craftcms/cmsPackagist |
4.0.0-RC1 up to 4.2.1, plus listed versions 4.0.04.0.0-RC24.0.0-RC34.0.0.14.0.1 Show 18 moreShow less4.0.24.0.34.0.44.0.54.0.5.14.0.5.24.0.64.1.04.1.0.14.1.0.24.1.14.1.24.1.34.1.44.1.4.14.2.04.2.0.14.2.0.2 |
4.2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-37251 is a medium vulnerability (CVSS 5.4) in Craftcms Craft Cms, published September 16, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.50%, the 43rd percentile. Fixed in craftcms/cms 3.7.55.2.
References
labs.integrity.pt/advisories/cve-2022-37251
nvd.nist.gov/vuln/detail/CVE-2022-37251
github.com/craftcms/cms/commit/919c9074ff8596bf30a629b0888c529793e9a903
github.com/craftcms/cms/blob/develop/CHANGELOG.md
github.com/craftcms/cms/commit/7139213dbd9e177a3528aac8e2db8de91830f118
github.com/craftcms/cms/commit/f0d9b8a1e3ac005a2418f7d3d9059b49a96e73ea
Left out here: 28 versions. The JSON record has them.