Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. privatebin/privatebin
  4. ›
  5. CVE-2026-55696

CVE-2026-55696: PrivateBin has stored Cross-Side-Scripting (XSS) vulnerability in attachment download link via dangerous MIME types with required user-interaction

August 28, 2026

Stored cross-site scripting (XSS) in PrivateBin’s attachment download link. An anonymous attacker can create a paste with a text/html attachment that, with certain user interaction, bypasses protections similar to CVE-2022-24833. When a victim opens the “Download attachment” link in a new tab, the attacker’s inline JavaScript executes in the PrivateBin instance’s origin with full same-origin capability (cookie/localStorage access, same-origin fetch).

This is an incomplete fix of CVE-2022-24833. The original fix only applies to the inline preview blob (in case of SVG), never to the download link’s blob. Thus a text/html (or image/svg) attachment completely bypasses sanitization, re-enabling the exact attack class on instances that don’t enforce the recommended Content-Security-Policy, but with a slightly different attack process.

Instances using the default recommended CSP are protected (the blob inherits script-src ‘self’, blocking inline scripts). The vulnerability affects instances where CSP is weakened, stripped, or absent, which is exactly the defense-in-depth scenario the CVE-2022-24833 fix was meant to cover.

Requires fileupload = true (non-default) and a non-recommended CSP configuration.

References

  • github.com/PrivateBin/PrivateBin/commit/e0dd4c025c19a182b6a4c6fb77a8bf81ceff6899
  • github.com/PrivateBin/PrivateBin/releases/tag/2.0.5
  • github.com/PrivateBin/PrivateBin/security/advisories/GHSA-f2xf-7x3g-4272
  • github.com/advisories/GHSA-f2xf-7x3g-4272
  • nvd.nist.gov/vuln/detail/CVE-2026-55696

Code Behaviors & Features

Detect and mitigate CVE-2026-55696 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.5

Fixed versions

  • 2.0.5

Solution

Upgrade to version 2.0.5 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

Source file

packagist/privatebin/privatebin/CVE-2026-55696.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 09 Sep 2026 00:16:03 +0000.