CVE-2026-25484
EPSS 0.02%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: ```html <img src=x onerror="alert('XSS-ProductType')" hidden> ``` 5. Save the Product Type. 6. Go to **Users** -> Edit any user -> Click on **Permissions** tab (`/admin/users/{UserID}/permissions`). 7. Alert fires instantly (when the Product Type checkbox renders). ## Resources https://github.com/craftcms/commerce/commit/7e1dedf06038c8e70dce0187b7048d4ab8ffb75c
受影響套件(1)
- Packagist/craftcms/commerce>= 5.0.0, < 5.5.2
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 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 |
參考連結(6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-25484
- PATCHhttps://github.com/craftcms/commerce
- WEBhttps://github.com/craftcms/commerce/commit/7e1dedf06038c8e70dce0187b7048d4ab8ffb75c
- WEBhttps://github.com/craftcms/commerce/releases/tag/4.10.1
- WEBhttps://github.com/craftcms/commerce/releases/tag/5.5.2
- WEBhttps://github.com/craftcms/commerce/security/advisories/GHSA-2h2m-v2mg-656c