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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.9
- **CVSS:** 3.9 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-28)
- **CWE:** CWE-79
- **Aliases:** GHSA-r9x7-7ggj-fx9f
- **Published:** 2025-11-13T01:50:31.780Z
- **Modified:** 2026-10-19T13:10:00.110Z

## Who should check

- Projects that depend on Packagist package privatebin/privatebin (\>= 1.7.7, \< 2.0.3)
- Anyone running PrivateBin \>= 1.7.7, \< 2.0.3

## Description

PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Starting in version 1.7.7 and prior to version 2.0.3, 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. Certain conditions must exist for the vulnerability to be exploitable. Only macOS or Linux users are affected, due to the way the \`\>\` character is treated in a file name on Windows. The PrivateBin instance needs to have file upload enabled. An attacker needs to have access to the local file system or somehow convince the user to create (or download) a malicious file (name). An attacker needs to convince the user to attach that malicious file to PrivateBin. Any Mac / Linux user who can be tricked into dragging a maliciously named file into the editor is impacted; code runs in the origin of the PrivateBin instance they are using. Attackers can steal plaintext, passphrases, or manipulate the UI before data is encrypted, defeating the zero-knowledge guarantees for that victim session, assuming counter-measures like Content-Security-Policy (CSP) have been disabled. If CSP is not disabled, HTML injection attacks may be possible - like redirecting to a foreign website, phishing etc. As the whole exploit needs to be included in the file name of the attached file and only affects the local session of the user (aka it is neither persistent nor remotely executable) and that user needs to interact and actively attach that file to the paste, the impact is considered to be practically low. Version 2.0.3 patches the issue.

## Affected and fixed versions

- Packagist `privatebin/privatebin`: affected \>= 1.7.7, \< 2.0.3; fixed 2.0.3 (osv)
- PrivateBin: \>= 1.7.7, \< 2.0.3 (cvelist)

## Mitigation

- Upgrade privatebin/privatebin to 2.0.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-64711. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-64711.md
Affected: privatebin/privatebin >= 1.7.7, < 2.0.3
Fixed in: 2.0.3

Steps:
1. Search this machine and project for privatebin/privatebin (Packagist), PrivateBin: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-64711 being exploited?

There is no confirmed exploitation: CVE-2025-64711 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-64711?

Low: CVSS 3.9 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-64711?

privatebin/privatebin \>= 1.7.7, \< 2.0.3.

### Is there a fix for CVE-2025-64711?

Yes. Fixed in 2.0.3. Upgrade privatebin/privatebin to 2.0.3 or later.

### How do I check if I'm affected by CVE-2025-64711?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-r9x7-7ggj-fx9f>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-64711>
- patch: <https://github.com/PrivateBin/PrivateBin/commit/f9550e513381208b36595ee2404e968144bba78b>
- other: <https://github.com/PrivateBin/PrivateBin>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-64711>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-r9x7-7ggj-fx9f> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-64711> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-64711>
