Cross-site scripting in PrivateBin
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Prior to 2.0.5, AttachmentViewer.setAttachment in js/privatebin.js uses getAttachmentMimeType to accept attacker-controlled MIME types and uses getBlobUrl to create a same-origin blob before setting attachmentLink's href for the Download attachment link. The SVG-only sanitization branch updates only the preview blob, so text/html, image/svg, application/xhtml+xml, and text/xml attachments can remain active in the download blob. On an instance with fileupload = true and a weakened, stripped, or absent Content Security Policy, an anonymous attacker can create such an attachment, and a victim who opens the link in a new tab causes inline JavaScript to execute in the PrivateBin origin. The script can read origin-scoped local storage and issue same-origin requests, including requests to applications co-hosted on the same domain. This issue is fixed in version 2.0.5.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| PrivateBin | PrivateBin | before 2.0.5 | 2.0.5 | Patch available | CNA |
| — | privatebin/privatebin (Packagist) | before 2.0.5 | 2.0.5 | Patch available | GHSA-f2xf-7x3g-4272 |
- PrivateBin VendorPrivateBin Affected before 2.0.5 Fixed in 2.0.5 Patch available CNA
- privatebin/privatebin (Packagist) Vendor— Affected before 2.0.5 Fixed in 2.0.5 Patch available GHSA-f2xf-7x3g-4272
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:privatebin:privatebin:*:*:*:*:*:*:*:* | — | — | PrivateBin |
- cpe:2.3:a:privatebin:privatebin:*:*:*:*:*:*:*:* Versions — — ·PrivateBin
Remediation
- Fix · CNA PrivateBin (PrivateBin) Fixed in 2.0.5
- Fix · GHSA-f2xf-7x3g-4272 privatebin/privatebin (Packagist) Fixed in 2.0.5 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-55696
- 2026-10-03 Alias added: GHSA-f2xf-7x3g-4272
References
Other 5
- https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-f2xf-7x3g-4272
- https://github.com/PrivateBin/PrivateBin/commit/7f1f40853efe0eb12db9cc4a30ea8524ac00f423
- https://github.com/PrivateBin/PrivateBin/releases/tag/2.0.5
- https://github.com/PrivateBin/PrivateBin/commit/e0dd4c025c19a182b6a4c6fb77a8bf81ceff6899
- https://github.com/PrivateBin/PrivateBin
More PrivateBin vulnerabilities
- TI-2022-08646 Persistent Cross-site Scripting (XSS) vulnerability in PrivateBin CVSS 3.1HIGH 8.2
- TI-2025-38979 PrivateBin persistent HTML injection in attachment filename enables redirect and defacement CVSS 3.1MEDIUM 5.8
- TI-2025-40057 PrivateBin vulnerable to malicious filename use for self-XSS / HTML injection locally for users CVSS 3.1MEDIUM 5.4
- TI-2026-40342 PrivateBin: Reflected JSON injection in backend responses via unescaped REQUEST_URI CVSS 3.1N/A 0.0
- TI-2025-40060 PrivateBin's template-switching feature allows arbitrary local file inclusion through path traversal CVSS 3.1MEDIUM 5.8
- TI-2024-26793 PrivateBin allows shortening of URLs for other domains CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-55696 · CVE Program
- CVE-2026-55696 · NVD
- FIRST EPSS
- GHSA-f2xf-7x3g-4272 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences