LiveActive security incident?Get immediate response
CVE Record

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/BaseElemen...

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.

MediumCVSS 5.4Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2022-37246 is a medium-severity cross-site scripting issue in Craft CMS 4.2.0.1. A low-privileged user could cause unsafe content to be handled in the control panel element selection interface, requiring another user interaction. Business risk is mainly control panel trust, session exposure, and limited data or content manipulation.

Executive priority

Treat as a scheduled remediation item unless the control panel is exposed to many users or untrusted contributors. It is not currently evidenced as actively exploited, but CMS admin surfaces can amplify XSS impact through account trust and content-management workflows.

Technical view

The issue is CWE-79 XSS in Craft CMS file src/web/assets/cp/src/js/BaseElementSelectInput.js, specifically handling elementInfo.label. The CVSS 3.1 vector is AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, indicating network reachability, low complexity, required privileges, required user interaction, changed scope, and limited confidentiality and integrity impact.

Likely exposure

Confirmed source data names Craft CMS 4.2.0.1. Exposure is most relevant where the Craft CMS control panel is reachable and low-privileged authenticated users can influence element labels or related content shown to other users. The source bundle does not prove broader version impact.

Exploitation context

The CVE is not listed as CISA KEV in the provided bundle, and no cited source here states active exploitation. The CVSS vector indicates exploitation requires authenticated low privileges and user interaction, reducing urgency versus unauthenticated server compromise but still relevant for CMS administration environments.

Researcher notes

Evidence is specific but incomplete: the CVE names Craft CMS 4.2.0.1 and a vulnerable JavaScript file/field, while affected vendor/product metadata is listed as n/a. Do not assume other versions without vendor confirmation. The referenced commit is the key technical artifact for patch verification.

Mitigation direction

  • Identify Craft CMS instances and confirm whether version 4.2.0.1 is present.
  • Review Craft CMS vendor guidance, release notes, and the referenced commit for the corrected release.
  • Upgrade affected instances to a vendor-supported version containing the XSS fix.
  • Restrict Craft CMS control panel access to trusted networks or VPN where feasible.
  • Review low-privileged control panel accounts and remove unnecessary access.

Validation and detection

  • Check application package metadata or lockfiles for Craft CMS 4.2.0.1.
  • Confirm whether the referenced patched code is present in deployed builds.
  • In staging, verify element labels render as text rather than executable markup.
  • Review control panel access logs for unusual authenticated activity around affected interfaces.
  • Document whether the control panel is internet-accessible or restricted.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-37246 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.4 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.4CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N2.32.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.4Medium
CVSS 3.1 vector shape for CVE-2022-37246Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.