CVE-2024-52286
Self Cross Site Scripting (XSS) In Merge Functionality in Stirling-PDF
Mitigation
- Upgrade Stirling-PDF to 0.32.0 or later.
Who should check
- Anyone running Stirling-Tools Stirling-PDF < 0.32.0
Vulnerability facts
- Affected
- Stirling-Tools Stirling-PDF < 0.32.0
- Fixed in
- Stirling-Tools Stirling-PDF 0.32.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 2.0 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: Low
- User interaction: Active
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.92% chance of exploitation in 30 days (percentile 58, 2026-11-26)
- CWE
- CWE-20, CWE-79
- Modified
Description
Stirling-PDF is a locally hosted web application that allows you to perform various operations on PDF files. In affected versions the Merge functionality takes untrusted user input (file name) and uses it directly in the creation of HTML pages allowing any unauthenticated to execute JavaScript code in the context of the user. The issue stems to the code starting at `Line 24` in `src/main/resources/static/js/merge.js`. The file name is directly being input into InnerHTML with no sanitization on the file name, allowing a malicious user to be able to upload files with names containing HTML tags. As HTML tags can include JavaScript code, this can be used to execute JavaScript code in the context of the user. This is a self-injection style attack and relies on a user uploading the malicious file themselves and it impact only them, not other users. A user might be social engineered into running this to launch a phishing attack. Nevertheless, this breaks the expected security restrictions in place by the application. This issue has been addressed in version 0.32.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Stirling-Tools Stirling-PDF | < 0.32.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-52286. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-52286.md Affected: Stirling-Tools Stirling-PDF < 0.32.0 Fixed in: Stirling-Tools Stirling-PDF 0.32.0 Steps: 1. Search this machine and project for Stirling-Tools Stirling-PDF: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2024-52286 being exploited?
There is no confirmed exploitation: CVE-2024-52286 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.92% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-52286?
Low: CVSS 2.0 (v4.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2024-52286?
Stirling-Tools Stirling-PDF < 0.32.0.
Is there a fix for CVE-2024-52286?
Yes. Fixed in Stirling-Tools Stirling-PDF 0.32.0. Upgrade Stirling-PDF to 0.32.0 or later.
How do I check if I'm affected by CVE-2024-52286?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.