CVE-2024-55342 Piranha CMS Cross-site Scripting vulnerability
Authenticated attackers can upload malicious PDFs to trigger XSS in victim browsers, potentially leading to code execution.
- 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-2024-55342?
CVE-2024-55342 is a medium-severity cross-site scripting vulnerability in n/a, published on 20 Dec 2024. 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
A file upload functionality in Piranha CMS 11.1 allows authenticated remote attackers to upload a crafted PDF file to /manager/media. This PDF can contain malicious JavaScript code, which is executed when a victim user opens or interacts with the PDF in their web browser, leading to a XSS vulnerability.
Weakness: CWE-79
Which versions are affected by CVE-2024-55342?
2 open source packages ship an affected version, including Piranha. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
Piranha NuGet | All versions to 11.1.0 | None |
Piranha NuGet | All versions to 11.1.0 | None |
Products include Dotnetfoundation Piranha Cms.
How do I fix CVE-2024-55342?
No fix has been published for CVE-2024-55342 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-2024-55342 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-55342 exists.
Other vulnerabilities in n/a
- CVE-2021-25976 Piranha CMS - Site-wide Cross-Site Request Forgery (CSRF)
- CVE-2025-57692 PiranhaCMS stored XSS
- CVE-2025-67290 Piranha has stored cross-site scripting (XSS) vulnerability
- CVE-2025-67291 Piranha has stored cross-site scripting (XSS) vulnerability
- CVE-2025-61413 Piranha CMS vulnerable to stored cross-site scripting (XSS)
Sources
Also known as GHSA-cmwp-442x-3rcv.