Craft Commerce has Stored XSS in Product Type Name

説明

Summary

Stored XSS via Product Type names. The name is not sanitized when displayed in user permissions settings.

The vulnerable input (source) is in Commerce (Product Type settings), but the sink is in CMS user permissions settings. Reporting to Commerce GHSA since the input originates here.

Users are recommended to update to the patched 5.5.2 release to mitigate the issue.


Proof of Concept

Required Permissions (Attacker)

  • Admin access (to edit Commerce settings)

Steps to Reproduce

  1. Log in as attacker with admin permissions.
  2. Go to Commerce -> Settings -> Product Types (/admin/commerce/settings/producttypes).
  3. Create a new Product Type.
  4. Set Name to:
<img src=x onerror="alert('XSS-ProductType')" hidden>
  1. Save the Product Type.
  2. Go to Users -> Edit any user -> Click on Permissions tab (/admin/users/{UserID}/permissions).
  3. Alert fires instantly (when the Product Type checkbox renders).

Resources

https://github.com/craftcms/commerce/commit/7e1dedf06038c8e70dce0187b7048d4ab8ffb75c

基本情報

タイプ
reviewed
深刻度
medium
GitHub 上のアドバイザリ
アドバイザリを開く ↗
リポジトリのアドバイザリ
リポジトリのアドバイザリを開く ↗
ソースコード
ソースを見る ↗
公開(アドバイザリ)
2026-02-02 22:44:05 UTC
更新
2026-02-03 21:40:07 UTC
GitHub レビュー済み
2026-02-02 22:44:05 UTC
NVD で公開
2026-02-03

EPSS Score

Score Percentile
0.02% 3.59%

CVSS Scores

Base score Version Severity Vector
4.8 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N クリックして展開
攻撃ベクター (AV:N)
インターネットや社内 WAN など、ルーティングされたネットワーク越しに遠隔から踏み台にしうる。
攻撃の複雑さ (AC:L)
手順が短く、再現性が高い。
攻撃要件 (AT:N)
到達性以外に、追加のインフラ条件やデータ前提は要らない。
必要な権限 (PR:H)
管理者・SYSTEM など強い権限が前提。
ユーザーの関与 (UI:P)
リンクのクリック、インストール承認など、一度の人の判断が要る。
脆弱システムの機密性への影響 (VC:N)
脆弱な対象から機微情報が読まれうる余地はほとんどない。
脆弱システムの完全性への影響 (VI:N)
改ざん・なりすましで信頼が揺らぐ局面はほとんど想定されない。
脆弱システムの可用性への影響 (VA:N)
業務を止めるほどの停止や劣化は想定しにくい。
後続システムの機密性への影響 (SC:L)
下流の一部資産について限定的な漏えいが起きうる。
後続システムの完全性への影響 (SI:L)
下流の一部コンポーネントで改ざんが起きうるが、全体信頼は保たれやすい。
後続システムの可用性への影響 (SA:N)
下流サービスが止まるほどの影響は想定しにくい。

Identifiers

CWEs

CWE id Name
CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Credits

  • mHe4am (reporter)

Affected packages (2)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
composer craftcms/commerce >= 5.0.0, <= 5.5.1 5.5.2
composer craftcms/commerce >= 4.0.0-RC1, <= 4.10.0 4.10.1

References

cvelogic Threat Intelligence