CVE-2026-41580

Stirling-PDF: Reflected XSS through crafted PDF metadata fields (Title and Author)

Published Jul 15, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Stirling‑PDF is a locally hosted web application that processes PDF files. In versions prior to 2.0.0, its /get‑info‑on‑pdf endpoint returned the PDF Title and Author metadata without proper HTML encoding or sanitization, allowing an attacker to embed malicious JavaScript. When a user opens a crafted PDF and views the resulting page, the browser executes the script, leading to reflected XSS.

Affected Systems

Stirling‑Tools Stirling‑PDF releases prior to version 2.0.0 are affected; the vulnerability is fixed starting in 2.0.0.

Risk and Exploitability

The CVSS score of 6.1 indicates moderate severity, while the EPSS score of less than 1% signals a low exploitation probability in the current threat landscape. The issue is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply a crafted PDF that a user opens on the local web interface, making the risk primarily confined to users who interact with the /get‑info‑on‑pdf endpoint on a compromised or maliciously constructed PDF file. With no widespread active exploitation reported, the immediate threat remains limited but non‑negligible for exposed or shared installations.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Stirling‑PDF to version 2.0.0 or later
  • If upgrading is not immediately feasible, disable the /get‑info‑on‑pdf endpoint or restrict its use to trusted administrators
  • As a temporary measure, modify the rendering logic to escape or strip HTML from Title and Author metadata before display

Generated by OpenCVE AI on July 31, 2026 at 03:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Stirling
Stirling stirling Pdf
Vendors & Products Stirling
Stirling stirling Pdf
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Stirling-PDF: Reflected XSS through crafted PDF metadata fields (Title and Author)
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 3:33 PM
Reserved
Apr 21, 2026, 2:15 PM
Status
Analyzed
Published
Jul 15, 2026, 4:16 PM
Modified
Oct 24, 2026, 9:10 PM