CVE-2025-64711
Low · 3.9PrivateBin vulnerable to malicious filename use for self-XSS / HTML injection locally for users
CVSS
3.9
EPSS
0.1%
Published
Nov 14, 2025
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Packagist | privatebin/privatebin | 1.7.7 | 2.0.3 |
| packagist | privatebin/privatebin | 1.7.7 | 2.0.3 |
Related vulnerabilities
- GHSA-r9x7-7ggj-fx9f PrivateBin vulnerable to malicious filename use for self-XSS / HTML injection locally for… Same vulnerability
- GHSA-g2j9-g8r5-rg82 PrivateBin's template-switching feature allows arbitrary local file inclusion through… Also affects privatebin/privatebin
- CVE-2025-64714 PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Also affects privatebin/privatebin
- CVE-2025-62796 PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Also affects privatebin/privatebin
- GHSA-867c-p784-5q6g PrivateBin is missing HTML sanitization of attached filename in file size hint Also affects privatebin/privatebin
- CVE-2026-96379 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96382 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96368 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79