Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐘
🐘 Packagist
Not in CISA KEV
LOW severity

CVE-2025-64711 — privatebin/privatebin

LOWFix: PrivateBin/PrivateBin@f9550e5

CVE-2025-64711 is a low-severity (CVSS 3.9) Cross-site Scripting (XSS) vulnerability in privatebin/privatebin. A fix is available for privatebin/privatebin — see the affected versions and patch details below.

PrivateBin vulnerable to malicious filename use for self-XSS / HTML injection locally for users

Also known asGHSA-r9x7-7ggj-fx9f
Published
Nov 13, 2025
Updated
Aug 12, 2026
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Sep 25, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.

Exploitation and automatability from CISA’s SSVC triage for CVE-2025-64711.

EPSS Exploitation Probability

via FIRST.org ↗
0.1%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs2th percentile — riskier than 2% of all scored CVEsHighest risk

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

How urgent is this, really

CVE-2025-64711 plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.

Where this sits among everything scored

Of 378,567 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.

Real-World Exposure

1 pkg affected
🐘privatebin/privatebin

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

Description

Summary

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 versions

PrivateBin versions since 1.7.7 and before 2.0.3.

Conditions

  • Only macIOS 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.

Impact

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, similar HTML injection attacks as described in CVE-2025-62796 may be possible - like redirecting to a foreign website, phishing etc.

Real-life impact

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.

Technical Description

When a file is dropped, readFileData collects all filenames and calls printDragAndDropFileNames:

const fileNames = loadedFiles.map((loadedFile => loadedFile.name));
printDragAndDropFileNames(fileNames);

printDragAndDropFileNames then renders those names:

        function printDragAndDropFileNames(fileNames) {
            $dragAndDropFileNames.html(fileNames.join('<br>'));
        }

This will insecurely render the user-submitted filenames as HTML.

This vulnerability has been introduced in this commit (introduced in 1.7.7).

The previous render method was using .text():

$dragAndDropFileName.text(loadedFile.name);

Reproduction Steps

  1. On a Unix-like system, create a file with an HTML/JS payload in its name, e.g. by running touch '"><img src=x onerror=alert(document.domain)>.txt'.
  2. Deploy or use any PrivateBin instance with attachments enabled (including https://privatebin.net/).
  3. Open the UI in a browser and start a new paste.
  4. Drag the crafted file anywhere on the page
  5. As soon as it is dropped, the filename is inserted into #dragAndDropFileName as HTML and the onerror handler fires (assuming CSP is disabled), showing the alert.

Mitigation

PrivateBin strongly recommends users to upgrade to the latest release. However, here are some workarounds that may help users to mitigate this vulnerability without upgrade:

  • Update the CSP in your configuration file to the latest recommended settings and check that it isn't getting reverted or overwritten by the web server, reverse proxy or CDN, i.e. using PrivateBin's offered check service. Note: Users should check the CSP independently, even if they've upgrade to a fixed version.
  • Deploying PrivateBin on a separate domain may limit the scope of the vulnerability to PrivateBin itself and thus, as described in the “Impact” section, effectively prevent any damage by the vulnerability to other resources users are hosting.
  • As explained in the impact assessment, disabling attachments also prevents this issue.

Patches

The issue has been patched in version 2.0.3.

Credits

PrivateBin would like to thank Benoit Esnard, who reported this vulnerability.

In general, PrivateBin would like to thank everyone reporting issues and potential vulnerabilities.

If a user thinks they have found a vulnerability or potential security risk, PrivateBin would kindly ask you to follow our security policy and report it. PrivateBin will then assess the report and will take the necessary actions to address it.

Timeline

  • 2025-11-09 Received report via GitHub Security Advisory
  • 2025-11-10 Discussed and reproduced issue, created a patch
  • 2025-11-11 Further work on patch
  • 2025-11-12 Released patch with PrivateBin 2.0.3

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistprivatebin/privatebin≥ 1.7.7&&< 2.0.32.0.3composer require privatebin/privatebin:^2.0.3

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for privatebin/privatebin, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update privatebin/privatebin to 2.0.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-64711 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like CVE-2025-64711 can be triaged on real exposure rather than presence alone.

Tailored to CVE-2025-64711. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

## Summary 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
O3 Security · Impact-Aware SCA

Is CVE-2025-64711 in your dependencies?

O3 Security finds CVE-2025-64711 across Packagist dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.

CVE-2025-64711: XSS (Low 3.9) | O3 Security