# CVE-2022-37246: Craft CMS Cross-site Scripting vulnerability

- Severity: Medium 5.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2022-09-21T14:14:01.000Z
- Modified: 2026-06-17T04:54:47.727Z
- Also known as: GHSA-f546-v666-559x
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- craftcms/cms (Packagist): from 4.0.0-RC1 before 4.2.1; from 3.7.39 before 3.7.51
- craftcms craft_cms: 4.2.0.1

## Every score

- CISA-ADP: 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`
- GitHub: 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`
- NVD: 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`

## References

- <https://github.com/craftcms/cms/commit/1d5fdba23c84d6d09a8a980c7b6fc52fb93b679b> (patch, third-party-advisory, web)
- <https://labs.integrity.pt/advisories/cve-2022-37246/> (patch, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-37246> (advisory)
- <https://github.com/craftcms/cms/commit/ecefe7f0afe0a6c4d1097a570cba82753d33f681> (web)
- <https://github.com/craftcms/cms> (package)
- <https://labs.integrity.pt/advisories/cve-2022-37246> (web)

## Sources

- CVE List: [CVE-2022-37246](https://www.cve.org/CVERecord?id=CVE-2022-37246), CVE Terms of Use, modified 2025-05-27
- GitHub Advisory Database: [GHSA-f546-v666-559x](https://github.com/advisories/GHSA-f546-v666-559x), CC-BY-4.0, modified 2024-02-17
- NVD: [CVE-2022-37246](https://nvd.nist.gov/vuln/detail/CVE-2022-37246), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-37246 · Whole record: https://cve.day/CVE-2022-37246.json · Rebuilt by cve.day 2026-11-25T22:58:15.169Z
