Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit polyglot PDF/HTML file to Pandora analysis queue
-
DeliveryPandora content detection validates file as PDF
-
ExploitVictim analyst accesses task and clicks PDF download link
-
ExecutionFlask serves file with HTML MIME type, no attachment header
-
PersistBrowser renders response inline, executing embedded JavaScript
-
ImpactAttacker JS exfiltrates session token or performs actions as victim
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 | Two conditions must both be satisfied for exploitation: the attacker must be able to submit a file to Pandora's analysis queue (the platform's core submission feature, which may be open to unauthenticated users or restricted depending on deployment configuration), and a victim with legitimate access to that specific analysis task must click the PDF download link. The vulnerability is activated by the absence of an explicit mimetype and as_attachment parameter in Flask's send_file() call - the exact default behavior present in all unpatched versions. Deployments that restrict file submission to authenticated or vetted users limit the attacker's ability to stage the payload. Exploitation is bounded to users who individually navigate to and interact with the attacker's submitted task; it is not self-propagating. The XSS impact is scoped to the Pandora application origin and does not directly affect the underlying host operating system. |
| Impact | The provided CVSS 4.0 vector scores 6.9 with UI:N (no user interaction), but this conflicts with the description, which explicitly requires a victim to follow the PDF download link - a clear user-interaction dependency. The assessed CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) better reflects this, yielding a Medium severity consistent with typical stored XSS patterns. Real-world risk is meaningful for organizations running multi-user Pandora deployments where analysts routinely access each other's submitted task results - the trigger condition (clicking a download link) is a normal workflow action. No EPSS score is available, no KEV listing exists, and no public POC has been identified, suggesting this has not been observed in widespread active exploitation. The niche deployment footprint of Pandora (a specialist open-source malware analysis tool used primarily by CERTs and security teams) limits the aggregate attack surface, but within those environments the impact on session integrity and analyst trust is disproportionately sensitive given the nature of the data processed. CVSS PR:N in the provided vector indicates no authentication is required for file submission, though victim access to the relevant task is required, making this a second-order stored XSS rather than a direct reflected injection. |
| Exploit ScenarioDerived | An attacker submits a polyglot binary to Pandora's file analysis queue - crafted so that its byte-level structure passes Pandora's content-based PDF detection, but its filename ends in .html or another web-executable extension. When a security analyst with access to the task later clicks the PDF download link in the analysis UI, Flask serves the file with Content-Type: text/html and no attachment header; the analyst's browser renders it inline, executing embedded JavaScript in the Pandora origin. The script can exfiltrate the analyst's session cookie or silently perform authenticated API actions such as accessing other analysis results. No public POC code is known at time of analysis, but polyglot PDF/HTML construction is a well-documented technique requiring no specialized tooling. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 17, 2026
Stored XSS in the Pandora malware analysis platform's PDF download endpoint allows attacker-controlled JavaScript to execute in the security context of the application when an analyst views a crafted analysis task. An attacker submits a polyglot file that passes Pandora's content-based PDF detection but whose filename or extension causes Flask's send_file() to serve it with an active MIME type such as text/html, with no Content-Disposition: attachment header forcing browser download. Any victim with access to the analysis task who follows the PDF download link will have attacker-supplied script execute in their Pandora session, potentially exposing session data or enabling unauthorized actions. No public exploit identified at time of analysis; a patch is available via upstream commit 668ec65a93cee327e3d925da2698849c9e65625a.
RemediationAI
Apply the upstream patch by pulling commit 668ec65a93cee327e3d925da2698849c9e65625a from https://github.com/pandora-analysis/pandora/commit/668ec65a93cee327e3d925da2698849c9e65625a, which modifies the api_task_download function in website/web/__init__.py to replace send_file(task.file.path) with send_file(task.file.path, mimetype='application/pdf', as_attachment=True, download_name=f'{task.uuid}.pdf'). This three-part fix enforces the correct MIME type, prevents inline browser rendering via Content-Disposition: attachment, and neutralizes the attacker-controlled filename by substituting a UUID-derived .pdf name. For deployments that cannot immediately patch, a compensating control is to place a reverse proxy (e.g., nginx) in front of Pandora and configure it to inject Content-Type: application/pdf and Content-Disposition: attachment; filename=download.pdf headers on all responses from the /task-download/ path - note this adds proxy configuration overhead and must be scoped precisely to avoid interfering with other download endpoints. Additionally, restricting access to the task download endpoint to trusted authenticated users shrinks the victim pool but does not eliminate the underlying flaw.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Pandora is an open-source Python malware analysis platform developed by CIRCL and maintained at pandora-analysis/pandora. Its Flask-based web component (website/web/__init__.py) exposes a task download endpoint at /task-download/<task_id>/.../pdf. The root cause is Flask's behavior when send_file() is called with a filesystem path but no explicit mimetype parameter: Flask infers the response Content-Type from the filename extension rather than the file's actual binary content. Pandora's content-based PDF validation inspects the file's bytes and confirms it resembles a PDF, but this check occurs independently of the filename used when serving the file. An attacker exploits this split - submitting a polyglot binary that satisfies content inspection while bearing a filename that Flask maps to text/html or another active MIME type. Without a Content-Disposition: attachment header, browsers render the response inline. CWE-79 applies: user-supplied content (the polyglot filename and its embedded script) is returned to victim browsers without proper output neutralization, specifically without enforced MIME type or attachment disposition. The CPE cpe:2.3:a:pandora-analysis:pandora:*:*:*:*:*:*:*:* covers all versions.
Know when Pandora 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Attacker needs no privileges to submit the polyglot file; victim must actively follow the download link (UI:R); XSS crosses browser security boundary into Pandora origin (S:C).
Primary rating from Vendor (CIRCL).
CVSS VectorVendor: CIRCL
DescriptionCVE.org
Pandora is affected by a stored cross-site scripting vulnerability in the PDF download functionality. The /task-download/<task_id>/.../pdf endpoint verifies that the submitted file is a PDF using Pandora's content-based file-type detection, but previously returned the file using send_file(task.file.path) without explicitly specifying the MIME type or forcing it to be downloaded as an attachment.
Because Flask determines the response MIME type from the filename when a path is supplied, an attacker could submit a file whose content is recognized by Pandora as a PDF while its filename or extension causes the download endpoint to return it with a different, potentially active MIME type.
A specially crafted PDF/polyglot file could therefore be served inline and interpreted by a victim's browser as HTML or another executable web format. If a victim with access to the submitted analysis follows the PDF download link, attacker-controlled script could execute in the security context of the Pandora application, potentially allowing access to application data or actions using the victim's session.
The patch prevents the issue by explicitly returning PDF downloads with Content-Type: application/pdf, forcing Content-Disposition: attachment, and assigning a trusted .pdf filename based on the task UUID.
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.
A vulnerability, which was classified as problematic, has been found in KMPlayer 4.2.2.73.dll. Rated high severity (CVSS
Pandora iOS app prior to version 8.3.2 fails to properly validate SSL certificates provided by HTTPS connections, which
KMPlayer 4.2.2.15 and earlier have a Heap Based Buffer Overflow Vulnerability. Rated high severity (CVSS 7.8), this vuln
The transfer and transferFrom functions of a smart contract implementation for Pandora (PDX), an Ethereum token, have an
Stored cross-site scripting in Pandora's URL observable rendering allows network-reachable attackers to inject arbitrary
workers/extractor.py in Pandora (aka pandora-analysis/pandora) 1.3.0 allows a denial of service when an attacker submits
A segmentation fault in KMPlayer v4.2.2.65 allows attackers to cause a Denial of Service (DoS) via a crafted AVI file. R
EUVD-2026-60458
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB