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

CVE-2025-64711: PrivateBin vulnerable to malicious filename use for self-XSS / HTML injection locally for users

November 14, 2025 (updated November 27, 2025)

Dragging a file whose filename contains HTML is reflected verbatim into the page via the drag-and-drop helper, so any user who drops a crafted file on PrivateBin will execute arbitrary JavaScript within their own session (self-XSS). This allows an attacker who can entice a victim to drag or otherwise attach such a file to exfiltrate plaintext, encryption keys, or stored pastes before they are encrypted or sent.

Note 1: as the malicious filename must contain the > character, the victim must not be using Windows for this to work, since this OS simply forbids this character in filenames.

Note 2: most PrivateBin instances use the Content-Security-Policy header to prevent most use-cases of this vulnerability. This report will describe the impact as if this header had been disabled by the PrivateBin instance owner.

References

  • github.com/PrivateBin/PrivateBin
  • github.com/PrivateBin/PrivateBin/commit/f9550e513381208b36595ee2404e968144bba78b
  • github.com/PrivateBin/PrivateBin/security/advisories/GHSA-r9x7-7ggj-fx9f
  • github.com/advisories/GHSA-r9x7-7ggj-fx9f
  • nvd.nist.gov/vuln/detail/CVE-2025-64711

Code Behaviors & Features

Detect and mitigate CVE-2025-64711 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 starting from 1.7.7 before 2.0.3

Fixed versions

  • 2.0.3

Solution

Upgrade to version 2.0.3 or above.

Impact 3.9 LOW

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

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/privatebin/privatebin/CVE-2025-64711.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 06 Dec 2025 12:19:28 +0000.