Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Network-reachable endpoint, no attacker auth required per description, but victim must actively view the info page (UI:R); scope changes because injected script executes in the application's browser origin with limited C/I impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
Stirling-PDF is a locally hosted web application that facilitates various operations on PDF files. Prior to 2.0.0, Stirling-PDF's /get-info-on-pdf endpoint rendered PDF Title and Author metadata fields without proper HTML encoding or sanitization, allowing a crafted PDF to execute attacker-controlled JavaScript in the browser of a user who views the resulting page. This issue is fixed in version 2.0.0.
AnalysisAI
Stored cross-site scripting in Stirling-PDF's /get-info-on-pdf endpoint allows attacker-controlled JavaScript to execute in any user's browser when they view metadata of a crafted PDF file. All versions prior to 2.0.0 are affected; the CVSS scope change (S:C) indicates injected scripts operate within the application's browser origin, enabling session hijacking or unauthorized actions. No public exploit code has been identified at time of analysis and this vulnerability has not been listed in CISA KEV.
Technical ContextAI
Stirling-PDF is a self-hosted, open-source web application for PDF manipulation (CPE: cpe:2.3:a:stirling-tools:stirling-pdf:*:*:*:*:*:*:*:*). The /get-info-on-pdf endpoint extracts and renders PDF document metadata - specifically the Title and Author fields - directly into the HTML response. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): metadata values are reflected without HTML encoding or sanitization, so any JavaScript embedded in those fields executes when a browser renders the page. The CVSS S:C (Scope Changed) metric confirms the injected script runs in the Stirling-PDF web origin's context, where it can access cookies, local storage, and perform authenticated API calls on behalf of the victim.
RemediationAI
Upgrade to Stirling-PDF version 2.0.0, which resolves this issue per the GitHub security advisory GHSA-rjjx-43g5-mp76 (https://github.com/Stirling-Tools/Stirling-PDF/security/advisories/GHSA-rjjx-43g5-mp76). Note that v2.0.0 is a major release with a redesigned UI, new licensing model, and significant configuration changes; the maintainers explicitly recommend backing up the config directory before upgrading production deployments. If immediate upgrade is not feasible, restrict access to the /get-info-on-pdf endpoint via reverse-proxy ACLs or WAF rules - this prevents the payload from being rendered, but disables PDF metadata inspection for all users. Additionally, limiting upload permissions to trusted users reduces the attacker's ability to plant a malicious PDF, though this is a partial control and not a substitute for patching.
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
Stirling-PDF version 2.7.3 fails to sanitize HTML content from email bodies in the /api/v1/convert/eml/pdf endpoint when
Reflected cross-site scripting (XSS) in Stirling-PDF versions before 2.0.0 allows unauthenticated remote attackers to ex
Stirling-PDF is a locally hosted web application that performs various operations on PDF files. Rated high severity (CVS
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-44691