Medium, CVSS 6.2PackagistPublished
Craft Commerce has Stored XSS in Shipping Categories (Name & Description) Fields Leading to Potential Privilege Escalation
CVE-2026-25485 · GHSA-w8gw-qm8p-j9j3
- Affected
- Packagist craftcms/composer >= 5.0.0-RC1, <= 5.5.1; >= 4.0.0-RC1, <= 4.10.0
- Fixed in
- 4.10.15.5.2· Vendor fix available
- Issue
- A stored XSS vulnerability in Craft Commerce allows attackers to execute malicious JavaScript in an administrator’s browser. This occurs because the Shipping Categories (Name & Description) fields in the Store Management section are not properly sanitized before being displayed in the admin panel. --- Proof of Concept Requirments - General permissions: - Access the control panel - Access Craft Commerce - Craft Commerce permissions: - Manage store settings - Manage shipping - An active administrator elevated session Steps to Reproduce 1. Log in to the Admin Panel with the attacker account with the permissions mentioned above. 2. Navigate to Commerce - Store Management - Shipping Categories (/admin/commerce/store-management/primary/shippingcategories). 3. Create a new shipping category. 4. In the Name field, enter the following payload: 4. Click Save & Go back to the previous page. 5. Notice the alert proving JavaScript execution. Privilege Escalation to Administrator: 1. Do…
Recommended action: Upgrade to 5.5.2 or 4.10.1 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.