
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-25485 is a stored Cross-Site Scripting (XSS) vulnerability in Craft Commerce, an ecommerce plugin for Craft CMS, that allows attackers with high privileges to inject malicious JavaScript into an administrator's browser. The vulnerability affects versions 4.0.0-RC1 through 4.10.0 and 5.0.0 through 5.5.1 of the craftcms/commerce Composer package. It was published on February 2, 2026, and patched in versions 4.10.1 and 5.5.2. The CVSS v3.1 base score is 4.8 (Medium), while the CVSS v4.0 base score is 6.2 (Medium) (Github Advisory, Craft Commerce Advisory).
The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically a failure to HTML-encode user-supplied data before rendering it in the admin panel. The Shipping Categories Name and Description fields in the Store Management section passed values directly through Craft::t('site', ...) without applying Html::encode(), allowing raw HTML/JavaScript to be stored and later rendered in the browser. The fix (commit fa27333) applied Html::encode() to multiple controllers including ShippingCategoriesController.php, ShippingZonesController.php, TaxCategoriesController.php, and others. Exploitation requires an attacker account with control panel access and the "Manage store settings" and "Manage shipping" permissions (Craft Commerce Advisory, Patch Commit).
Successful exploitation allows injected JavaScript to execute in an administrator's browser with the admin's session permissions, enabling session hijacking, credential theft via fake login overlays, and unauthorized configuration changes. The stored nature of the XSS means any administrator who views the Shipping Categories page is affected, not just the initial victim. In a privilege escalation scenario, an attacker with limited admin permissions can use the XSS payload to elevate their own account to full administrator status if an elevated session is active, potentially leading to full compromise of the Craft Commerce administration interface (Github Advisory, Craft Commerce Advisory).
A proof-of-concept exploit is publicly documented in the GitHub Security Advisory, including specific payloads for both basic XSS demonstration and privilege escalation. There is no evidence of in-the-wild exploitation at this time, and no threat actor attribution has been reported. The EPSS score is approximately 0.025% (7th percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Github Advisory).
/admin/commerce/store-management/primary/shippingcategories).<script>alert(1)</script> for PoC, or a more sophisticated payload for privilege escalation) in the Name or Description field, then save./admin/commerce/store-management/primary/shippingcategories containing HTML/script tags or encoded JavaScript in the name or description parameters.name or description values containing <script>, javascript:, onerror=, or other XSS indicators.Upgrade Craft Commerce to version 4.10.1 (for the 4.x branch) or 5.5.2 (for the 5.x branch), which apply Html::encode() to all affected fields. No configuration-based workaround is available; patching is the only remediation. As interim measures, restrict admin panel access to trusted users only, review existing Shipping Category Name and Description fields for suspicious content, and consider implementing Content Security Policy (CSP) headers to limit XSS impact (Release 4.10.1, Release 5.5.2).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."