CVE-2025-62796 Details
Description
PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Versions 1.7.7 through 2.0.1 allow persistent HTML injection via the unsanitized attachment filename (attachment_name) when attachments are enabled. An attacker can modify attachment_name before encryption so that, after decryption, arbitrary HTML is inserted unescaped into the page near the file size hint, enabling redirect (e.g., meta refresh) and site defacement and related phishing attacks. Script execution is normally blocked by the recommended Content Security Policy, limiting confidentiality impact. The issue was introduced in 1.7.7 and fixed in 2.0.2. Update to 2.0.2 or later. Workarounds include enforcing the recommended CSP, deploying PrivateBin on a separate domain, or disabling attachments.
A persistent HTML injection vulnerability has been identified in PrivateBin versions 1.7.7 through 2.0.1. This vulnerability allows attackers to inject arbitrary HTML into the filename of attached files, which is then rendered without proper sanitization. The issue arises when attachments are enabled, as the unsanitized filename is displayed near the file size hint. Exploitation of this vulnerability could lead to cross-site scripting (XSS) attacks, website defacement, open redirects, and related phishing attacks.
Users are advised to upgrade to PrivateBin version 2.0.2 or later. After upgrading, check that a strong Content Security Policy header is being delivered.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 28, 2025CISA-ADP
Assessed Oct 29, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/PrivateBin/PrivateBin/commit/c4f8482b3072be7ae012cace1b3f5658dcc3b42e | [email protected] | Source CodeVendor |
| https://github.com/PrivateBin/PrivateBin/pull/1550 | [email protected] | Issue TrackingVendor |
| https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-867c-p784-5q6g | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-80 | Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| PrivateBin | >= 1.7.7, <= 2.0.1 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 28, 2025 | New CVE Received | [email protected] |
Volerion