Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate with low-priv QD account
-
DeliveryCreate HAR template using api://util/unicode
-
ExploitInject JS payload into __log__ via extract_variables
-
InstallPersist payload in task configuration
-
C2Lure victim to trigger /task/<taskid>/run
-
ExecuteInjected script executes in victim browser
-
ImpactSteal session token or perform CSRF
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must hold a low-privileged authenticated account within the QD application (CVSS PR:L confirmed) with permission to create or modify HAR templates. The attack requires the |
| Impact | The provided CVSS 5.4 Medium (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N) accurately captures the core risk profile: network-reachable, low complexity, but gated behind PR:L (requires a QD account) and UI:R (victim must trigger the task run). EPSS at 0.15% (5th percentile) signals very low observed exploitation activity, and this CVE is not in CISA KEV. However, a public POC exists on GitHub Gist, lowering the barrier for opportunistic abuse. The scope-change flag (S:C) is warranted because attacker-controlled script executes in the victim's browser session, enabling session hijacking or CSRF against other users including administrators. Real-world priority is moderate: the POC lowers exploitation effort significantly, but impact is constrained to environments where multiple trust-level users share the QD instance. Single-user or internally-isolated deployments face lower risk. The combination of low EPSS and PR:L suggests this is not currently being mass-exploited. |
| Exploit ScenarioDerived | An attacker with a low-privileged QD account creates a HAR template that leverages the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 01, 2026
Stored XSS in QD (versions 20220208-20250803) allows a low-privileged authenticated attacker to inject arbitrary JavaScript into the task execution log output, which then executes in a victim user's browser when they trigger the affected task run. The injection path runs through HAR template variables - specifically the __log__ field populated via the extract_variables mechanism and the api://util/unicode endpoint - which are rendered unsanitized into HTML via Python % string formatting in TaskRunHandler.post(). A public POC is available via GitHub Gist; no patch version has been confirmed at time of analysis.
RemediationAI
No confirmed patched release version is identified from the available input data. The upstream fix requires HTML-encoding the logtmp content before interpolation in TaskRunHandler.post() - replacing raw Python % formatting with an HTML-escaping function (e.g., html.escape()) applied to all log content before rendering. As compensating controls until a patch is confirmed: restrict task creation and HAR template modification permissions to the minimum set of trusted users, as this reduces the attacker's ability to plant a malicious template; additionally, restrict access to the api://util/unicode internal endpoint if it can be scoped by role. Monitoring the GitHub Gist POC at https://gist.github.com/kurokoleung/9fc51b02c85c2f466bf4ea72c62ba343 and the NVD entry at https://nvd.nist.gov/vuln/detail/CVE-2026-51153 for patch release announcements is advised. Restricting multi-user access to QD until a patch is released is the most effective near-term control.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
QD is a Python-based web task automation framework with a browser UI. The vulnerable component is TaskRunHandler.post() in web/handlers/task.py, which handles POST requests to /task/<taskid>/run. When rendering the task run response, it interpolates the logtmp variable - sourced from either exception objects or new_env.variables.__log__ - directly into HTML markup using Python % string formatting, bypassing HTML encoding entirely. CWE-79 (Improper Neutralization of Input During Web Page Generation / XSS) is the root cause. The __log__ variable is user-controlled: QD's HAR template system allows the extract_variables mechanism to populate arbitrary content into __log__ via the api://util/unicode internal endpoint, making this a stored rather than reflected XSS. The CPE provided (cpe:2.3:a:n/a:n/a) is a NVD placeholder and does not accurately identify the product; the real vendor/product is the qd-today open-source project.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Stored XSS requires low-priv account (PR:L) to plant payload and victim interaction to trigger (UI:R); scope change applies as attacker JS runs in victim browser context.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
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 new_env.variables.__log__, which is attacker-controlled via the template extract_variables 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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-68639
GHSA-wfcf-9h78-ggcj
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB