CVE-2026-25482 — Craft Commerce has Stored DOM XSS in...
Craft Commerce has Stored DOM XSS in Order Status Name (Reflects in "Recent Orders" Dashboard Widget)
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.49%). Schedule for your next planned update.
Does your project use an affected craftcms/commerce version?
Paste your composer.lock to check it for CVE-2026-25482 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
A stored DOM XSS vulnerability exists in the "Recent Orders" dashboard widget. The Order Status Name is rendered via JavaScript string concatenation without proper escaping, allowing script execution when any admin visits the dashboard.
Users are recommended to update to the patched 5.5.2 release to mitigate the issue.
Proof of Concept
Required Permissions
- Admin access (to edit/create Order Statuses)
Steps to Reproduce
- Log in with an admin account
- Navigate to Commerce → Settings → Order Statuses
- Create new order status (e.g., "Pending")
- Set the Name field to:
<img src=x onerror="alert('Order Statuses XSS')" hidden>
- Save the order status
- Go to Commerce Orders & make some orders with different statuses (e.g. "New" & "the malicious created status")
- Go to the Dashboard (
/admin/dashboard) & Add "Recent Orders" widget and pick the same 2 statuses for orders - Notice the XSS execution
Technical Details
File: vendor/craftcms/commerce/src/templates/_components/widgets/orders/recent/body.twig
Root Cause: value.name (the Order Status Name) is concatenated directly into the HTML string without sanitization. When JavaScript inserts this HTML into the DOM, any malicious tags/scripts in the name are executed.
Mitigation
Use Craft.escapeHtml() in the callback:
callback: function(value) {
return '<span class="commerceStatusLabel"><span class="status ' + Craft.escapeHtml(value.color) + '"></span>' + Craft.escapeHtml(value.name) + '</span>';
}
Resources:
https://github.com/craftcms/commerce/commit/d94d1c9832a47a1c383e375ae87c46c13935ba65
Advisory Timeline
- First published February 2, 2026 (297 days ago).
- Last revised February 3, 2026 — 1 day after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "craftcms/commerce:^5.5.2"
composer require "craftcms/commerce:^4.10.1"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| craftcms/commerce Packagist · Affected: 5.0.0, 5.0.1, 5.0.10, 5.0.10.1 (+82 more) | 5.5.2 |
| craftcms/commerce Packagist · Affected: 4.0.0, 4.0.0-RC1, 4.0.1, 4.0.2 (+65 more) | 4.10.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
References
- https://github.com/craftcms/commerce/security/advisories/GHSA-frj9-9rwc-pw9jWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-25482ADVISORY
- https://github.com/craftcms/commerce/commit/d94d1c9832a47a1c383e375ae87c46c13935ba65WEB
- https://github.com/craftcms/commercePACKAGE
- https://github.com/craftcms/commerce/releases/tag/4.10.1WEB
- https://github.com/craftcms/commerce/releases/tag/5.5.2WEB
Frequently Asked Questions
- What is CVE-2026-25482?
- Craft Commerce has Stored DOM XSS in Order Status Name (Reflects in "Recent Orders" Dashboard Widget). This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 8.1/10).
- How do I check if my project is affected by CVE-2026-25482?
- CVE-2026-25482 affects craftcms/commerce. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-25482 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 34.7% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-32271HIGH
Craft Commerce has a SQL Injection can lead to Remote Code Execution via TotalRevenue Widget
- CVE-2026-29172HIGH
Craft Commerce is Vulnerable to SQL Injection in Commerce Purchasables Table Sorting
- CVE-2026-29174HIGH
Craft Commerce is vulnerable to SQL Injection in Commerce Inventory Table Sorting
- CVE-2026-32272HIGH
Craft Commerce hasVariant/hasProduct Blind SQL Injection
- CVE-2026-75592MEDIUM
Kirby: Access to image files outside of the site root via path traversal in the media handling
- CVE-2026-88023MEDIUM
MongoDB: GridFS data disclosure and deletion via query-operator injection in file IDs