craftcms/commerce
Affected
- introduced
5.0.0, fixed5.5.2(ecosystem)
Fixed versions
5.5.2
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: 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.
---
Proof of Concept
Required Permissions (Attacker)
Steps to Reproduce
/admin/commerce/settings/producttypes).<img src=x onerror="alert('XSS-ProductType')" hidden>
/admin/users/{UserID}/permissions).Resources
https://github.com/craftcms/commerce/commit/7e1dedf06038c8e70dce0187b7048d4ab8ffb75c
Medium Basis: The source's own band: MODERATE
5.0.0, fixed 5.5.2 (ecosystem)5.5.2
The export has no generic command for this ecosystem.
4.0.0-RC1, fixed 4.10.1 (ecosystem)4.10.1
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0