CVE-2026-51153: XSS

Published Aug 31, 2026
·
Updated

Stored Cross-Site Scripting (XSS) in TaskRunHandler.post() in web/handlers/task.py in QD 20220208 through 20250803. When a task is run via /task/<taskid>/run, the handler renders task log content (logtmp) into the HTML response using Python % string formatting without HTML encoding. logtmp is populated from the exception object or from newenv.variables.log, which is attacker-controlled via the template extractvariables mechanism. A low-privileged authenticated attacker can create a crafted HAR template that extracts arbitrary HTML/JavaScript into the log variable via the api://util/unicode endpoint. When a victim triggers the task run, the embedded script executes in the victim browser within the QD application context.

Affected Software

1 affected component
QD>=20220208<=20250803

Event History

Aug 31, 2026
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description

Frequently Asked Questions

1

Who is exposed to this issue?

QD instances in the affected 20220208 through 20250803 range are exposed when low-privileged authenticated users can create or modify HAR templates and another user runs the crafted task. The script executes in the browser of the user who triggers that task.

2

What does an attacker need to exploit it?

The attacker needs a low-privileged authenticated QD account and the ability to create a crafted HAR template. The template can use the api://util/unicode endpoint and the extract_variables mechanism to place attacker-controlled HTML or JavaScript into the __log__ variable.

3

Is exploitation triggered merely by creating the malicious task?

No. The payload is rendered when the task is run through /task/<taskid>/run, so a victim must trigger execution of the crafted task for the script to run in that victim's browser.

4

How can I identify potentially affected tasks?

Review HAR templates created or modified by low-privileged users for extract_variables usage that writes to __log__, especially templates referencing api://util/unicode. Also review task runs initiated through /task/<taskid>/run for suspicious log content.

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