CVE-2026-41580: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Stirling-Tools Stirling-PDF
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.
AI Analysis
Technical Summary
Stirling-PDF versions before 2.0.0 contain a CWE-79 XSS vulnerability in the /get-info-on-pdf endpoint. The vulnerability arises because the application renders PDF metadata fields (Title and Author) directly into the web page without proper HTML encoding or sanitization. An attacker can exploit this by embedding malicious JavaScript in these metadata fields within a crafted PDF file. When a user accesses the endpoint to view PDF information, the malicious script executes in their browser context. This vulnerability has a CVSS 3.1 base score of 6.1, indicating a medium severity. The vulnerability is resolved in Stirling-PDF version 2.0.0.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the user's browser when viewing the /get-info-on-pdf page for a crafted PDF. This can lead to limited confidentiality and integrity impacts such as theft of user session data or manipulation of the page content. There is no direct impact on availability. The vulnerability requires user interaction (viewing the page) and is remotely exploitable without privileges.
Mitigation Recommendations
A fix is available in Stirling-PDF version 2.0.0. Users should upgrade to version 2.0.0 or later to remediate this vulnerability. No official vendor advisory or patch link is provided, but the version 2.0.0 release is stated to fix the issue. Until upgraded, users should avoid processing untrusted PDF files with the affected endpoint.
CVE-2026-41580: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Stirling-Tools Stirling-PDF
Description
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.
CVSS v3.1
Score 6.1medium
Affected software
pkg:github/stirling-tools/Stirling-PDFRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Stirling-PDF versions before 2.0.0 contain a CWE-79 XSS vulnerability in the /get-info-on-pdf endpoint. The vulnerability arises because the application renders PDF metadata fields (Title and Author) directly into the web page without proper HTML encoding or sanitization. An attacker can exploit this by embedding malicious JavaScript in these metadata fields within a crafted PDF file. When a user accesses the endpoint to view PDF information, the malicious script executes in their browser context. This vulnerability has a CVSS 3.1 base score of 6.1, indicating a medium severity. The vulnerability is resolved in Stirling-PDF version 2.0.0.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the user's browser when viewing the /get-info-on-pdf page for a crafted PDF. This can lead to limited confidentiality and integrity impacts such as theft of user session data or manipulation of the page content. There is no direct impact on availability. The vulnerability requires user interaction (viewing the page) and is remotely exploitable without privileges.
Mitigation Recommendations
A fix is available in Stirling-PDF version 2.0.0. Users should upgrade to version 2.0.0 or later to remediate this vulnerability. No official vendor advisory or patch link is provided, but the version 2.0.0 release is stated to fix the issue. Until upgraded, users should avoid processing untrusted PDF files with the affected endpoint.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-21T14:15:21.958Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a57a83f68715ace43f80bdb
Added to database: 07/15/2026, 15:33:19 UTC
Last enriched: 07/15/2026, 15:50:34 UTC
Last updated: 07/16/2026, 03:43:49 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.