CVE-2026-25484: 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.
Published Feb 2, 2026 · Updated Feb 3, 2026
Affected packages
craftcms/commerce
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.0.0, <= 5.5.1
- Fixed in
- 5.5.2
- Check
composer show craftcms/commerce
craftcms/commerce
- Ecosystem
- Composer (PHP)
- Affected
- >= 4.0.0-RC1, <= 4.10.0
- Fixed in
- 4.10.1
- Check
composer show craftcms/commerce
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
- Log in as attacker with admin permissions.
- Go to Commerce -> Settings -> Product Types (
/admin/commerce/settings/producttypes). - Create a new Product Type.
- Set Name to:
- Save the Product Type.
- Go to Users -> Edit any user -> Click on Permissions tab (
/admin/users/{UserID}/permissions). - Alert fires instantly (when the Product Type checkbox renders).
Resources
https://github.com/craftcms/commerce/commit/7e1dedf06038c8e70dce0187b7048d4ab8ffb75c
Credited to mHe4am.
References
- https://github.com/craftcms/commerce/security/advisories/GHSA-2h2m-v2mg-656c
- https://github.com/craftcms/commerce/commit/7e1dedf06038c8e70dce0187b7048d4ab8ffb75c
- https://github.com/craftcms/commerce/releases/tag/4.10.1
- https://github.com/craftcms/commerce/releases/tag/5.5.2
- https://nvd.nist.gov/vuln/detail/CVE-2026-25484
- https://github.com/advisories/GHSA-2h2m-v2mg-656c
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-55795
Craft Commerce: Coupon Code Brute-Force via Rate Limit Bypass
medium6.9Jun 19, 2026GHSA-78vr-q6cf-c7p6
Craft Commerce: Partial Payment Amount Without Lower Bound Validation
medium6.9Jun 19, 2026CVE-2026-32270
Craft Commerce has an unauthenticated information disclosure that can leak some customer order data on anonymous payments
low1.7Apr 14, 2026CVE-2026-32271
Craft Commerce has a SQL Injection can lead to Remote Code Execution via TotalRevenue Widget
high8.7Apr 14, 2026CVE-2026-32272
Craft Commerce hasVariant/hasProduct Blind SQL Injection
high8.7Apr 14, 2026CVE-2026-29172
Craft Commerce is Vulnerable to SQL Injection in Commerce Purchasables Table Sorting
high8.7Mar 10, 2026
