CVE-2026-34071 Stirling-PDF has Stored Cross Site Scripting (XSS) via EML-to-HTML Export

Medium 5.4 Published Updated

Attackers can execute JavaScript in victim browsers by sending malicious emails that trigger unsanitized HTML export in Stirling-PDF.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-34071?

CVE-2026-34071 is a medium-severity cross-site scripting vulnerability in Stirling-Tools Stirling-PDF, published on 26 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-79

Which versions are affected by CVE-2026-34071?

It affects 1 product.

Products include Stirling Stirling Pdf.

How do I fix CVE-2026-34071?

No fix has been published for CVE-2026-34071 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-34071 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34071 exists.

Sources

Also known as GHSA-xmhg-fv84-jgfc.

Is CVE-2026-34071 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free