Live threats

All CVEs / Craftcms

CVE-2022-37246Craftcms Craft Cms

Medium 5.4

Priority
32
CVSS 3.1
5.4
EPSS
0.6%
probability of exploitation in 30 days · percentile 43
Auth required
Yes
Published
Sep 21, 2022
Updated
Jun 17, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Craft Cms.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist craftcms/cms ≥ 4.0.0-RC1 < 4.2.1 4.2.1 composer require "craftcms/cms:^4.2.1"
Packagist craftcms/cms ≥ 3.7.39 < 3.7.51 3.7.51 composer require "craftcms/cms:^3.7.51"

Per OSV / GitHub Advisories (GHSA-f546-v666-559x). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
craftcmscraft_cms4.2.0.1

Official sources

References

Links published by the sources. Open them with care.