Severity by source
AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
6DescriptionGitHub Advisory
Stirling-PDF is a locally hosted web application that facilitates various operations on PDF files. In versions prior to 2.0.0, file upload endpoints render user-supplied filenames directly into HTML using unsafe methods like innerHTML without sanitization. An attacker can craft a file with a malicious filename containing JavaScript that executes in the uploading user's browser context, resulting in reflected XSS. The issue affects numerous upload endpoints across the application. The issue has been fixed in version 2.0.0.
AnalysisAI
Reflected cross-site scripting (XSS) in Stirling-PDF versions before 2.0.0 allows unauthenticated remote attackers to execute arbitrary JavaScript in a victim's browser by uploading a file with a malicious filename containing script code. The vulnerability affects multiple file upload endpoints that render user-supplied filenames directly into HTML via unsafe DOM manipulation methods without sanitization. Attack requires user interaction (victim must upload the crafted file), limiting real-world impact. No public exploit code or active exploitation has been identified at time of analysis.
Technical ContextAI
Stirling-PDF is a self-hosted web application for PDF operations. The vulnerability stems from CWE-20 (improper input validation) in the file upload handling logic. Multiple upload endpoints use unsafe HTML rendering methods-specifically innerHTML or equivalent DOM manipulation-to display filenames without encoding or sanitizing user input. When a filename contains JavaScript payload (e.g., 'file<img src=x onerror=alert(1)>.pdf'), the browser interprets and executes the script in the security context of the web application. The affected product is identified via CPE cpe:2.3:a:stirling-tools:stirling-pdf:*:*:*:*:*:*:*:*, indicating all versions before 2.0.0 are vulnerable.
RemediationAI
Upgrade Stirling-PDF to version 2.0.0 or later, which fixes the unsafe filename rendering by implementing proper input sanitization and using safe DOM methods (textContent instead of innerHTML) or HTML entity encoding. If immediate upgrade is not feasible, restrict file upload access to trusted users only via authentication controls and network segmentation-deploy Stirling-PDF behind a reverse proxy that enforces authentication and limits upload access to specific IP ranges or user groups. Additionally, configure web server headers (Content-Security-Policy with script-src 'none' or 'self') to mitigate XSS impact, though this is not a substitute for patching. These controls reduce attack surface but do not eliminate the vulnerability; upgrade to 2.0.0 is the primary remediation. Consult the GitHub security advisory at https://github.com/Stirling-Tools/Stirling-PDF/security/advisories/GHSA-q5j3-4m5w-wp75 for vendor confirmation.
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 is a locally hosted web application that allows you to perform various operations on PDF files. Rated high
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
Stirling-PDF, a locally hosted web application for PDF operations, contains a path traversal vulnerability in the /api/v
Stored cross-site scripting in Stirling-PDF prior to version 2.0.0 allows an attacker to embed JavaScript payloads insid
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
Stored cross-site scripting in Stirling-PDF's /get-info-on-pdf endpoint allows attacker-controlled JavaScript to execute
Stirling-PDF version 2.7.3 fails to sanitize HTML content from email bodies in the /api/v1/convert/eml/pdf endpoint when
Stirling-PDF is a locally hosted web application that performs various operations on PDF files. Rated high severity (CVS
Same weakness CWE-20 – Improper Input Validation
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-23513