Skip to main content

QD Task Runner CVE-2026-51153

| EUVDEUVD-2026-68639 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-31 mitre GHSA-wfcf-9h78-ggcj
5.4
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate with low-priv QD account
  2. Delivery
    Create HAR template using api://util/unicode
  3. Exploit
    Inject JS payload into __log__ via extract_variables
  4. Install
    Persist payload in task configuration
  5. C2
    Lure victim to trigger /task/<taskid>/run
  6. Execute
    Injected script executes in victim browser
  7. Impact
    Steal 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 extract_variables mechanism to be available and the api://util/unicode endpoint to be reachable within the template execution context - both are core QD features, not non-default configurations. A victim user must actively trigger the affected task run via POST to /task/<taskid>/run (CVSS UI:R confirmed). Exploitation is limited to QD instances version 20220208 through 20250803. Environments where all users are equally trusted, or where only a single user accesses QD, substantially reduce the real-world impact of this stored XSS.

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 api://util/unicode endpoint within the extract_variables mechanism to store a JavaScript payload - such as a cookie-stealing script - into the __log__ variable. When a higher-privileged user (e.g., an administrator) subsequently navigates to the task and triggers a run via /task/<taskid>/run, the stored payload is rendered unescaped into the HTML response and executes in the administrator's browser, potentially exposing their session token. A public POC demonstrating this technique is available on GitHub Gist.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n/a n/a

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

Vendor (mitre) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
CVSS changed
Sep 01, 2026 - 16:22 NVD
5.4 (MEDIUM)
CVE Published
Aug 31, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.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

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Rare
niche open-source Python task automation tool, limited enterprise footprint
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy