Read the docs
TI-2026-40210 Aliases CVE-2026-55696GHSA-f2xf-7x3g-4272

Cross-site scripting in PrivateBin

Priority LOW 20CWE-79Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00438 38th percentileScored 2026-11-07
Fix Fixed PrivateBin (PrivateBin): 2.0.5privatebin/privatebin (Packagist): 2.0.5

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

VendorProductAffected versionsFixed inStatusSource
PrivateBinPrivateBinbefore 2.0.52.0.5Patch availableCNA
—privatebin/privatebin (Packagist)before 2.0.52.0.5Patch availableGHSA-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.

CPEVersionsRoleVendor
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

  1. 2026-10-02 Threatist record created from CVE-2026-55696
  2. 2026-10-03 Alias added: GHSA-f2xf-7x3g-4272

References

  • 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
See all 7 →

Sources