PrivateBin has stored Cross-Side-Scripting (XSS) vulnerability in attachment download link via dangerous MIME types with required user-interaction (CVE-2026-55696)
Description
PrivateBin versions prior to 2.0.5 have a stored cross-site scripting (XSS) vulnerability in the attachment download link. An attacker can upload a text/html attachment that, when a victim opens the "Download attachment" link in a new tab, executes attacker-controlled JavaScript in the context of the PrivateBin instance. This vulnerability arises because the download link uses an unsanitized blob URL with attacker-controlled MIME type, bypassing sanitization protections. The issue requires file uploads to be enabled and a non-recommended or weakened Content-Security-Policy (CSP) configuration. Instances using the default recommended CSP are protected. This vulnerability is related to and an incomplete fix of CVE-2022-24833.
CVSS v3.1
Score 4.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in PrivateBin (CVE-2026-55696) is a stored XSS in the attachment download link caused by unsanitized blobs with attacker-controlled MIME types, specifically text/html or image/svg. The sanitization logic only applies to inline previews of SVG attachments but not to the download link, which always points to an unsanitized blob URL. Since the MIME type is extracted from attacker-controlled decrypted data, an attacker can craft a paste with a malicious HTML attachment. When a victim opens the download link in a new tab, the browser renders the blob as a same-origin document, executing the attacker's inline JavaScript with full same-origin privileges. This bypasses protections intended by the fix for CVE-2022-24833, which only sanitized inline previews and assumed the download link would be handled as a file download rather than a same-origin blob navigation. The vulnerability requires fileupload=true (non-default) and a weakened or absent CSP. Instances using the recommended CSP are not vulnerable.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the PrivateBin instance's origin when a victim opens the malicious attachment download link in a new tab. This can lead to theft of cookies, localStorage data, and same-origin fetch requests, potentially compromising user session data or other sensitive information accessible within the PrivateBin origin. The impact is limited by the requirement of user interaction (opening the download link in a new tab) and the presence of a weakened or absent CSP. Confidentiality is partially impacted; integrity and availability are not directly affected.
Mitigation Recommendations
A patch is available that addresses this vulnerability. Users should upgrade PrivateBin to version 2.0.5 or later. Additionally, enforcing the default recommended Content-Security-Policy (CSP) protects against this attack by blocking inline script execution in blob URLs. Instances with fileupload enabled should ensure CSP is properly configured and not weakened or removed. Since the vulnerability requires fileupload=true (non-default), disabling file uploads if not needed also mitigates risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-f2xf-7x3g-4272
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-55696"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a92f81dacd9273b49e9113c
Added to database: 08/29/2026, 15:17:49 UTC
Last enriched: 09/09/2026, 18:38:09 UTC
Last updated: 10/13/2026, 18:48:21 UTC
Views: 76
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.