# CVE-2025-62796: PrivateBin persistent HTML injection in attachment filename enables redirect and defacement

- Severity: Medium 5.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2025-10-28T20:14:09.000Z
- Modified: 2026-10-19T13:10:00.110Z
- Also known as: GHSA-867c-p784-5q6g
- Weaknesses: CWE-79, CWE-80, CWE-601
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- PrivateBin PrivateBin: >= 1.7.7, < 2.0.2
- privatebin/privatebin (Packagist): from 1.7.7 before 2.0.2

## Every score

- GitHub_M: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`

## References

- <https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-867c-p784-5q6g> (web)
- <https://github.com/PrivateBin/PrivateBin/pull/1550> (web)
- <https://github.com/PrivateBin/PrivateBin/commit/c4f8482b3072be7ae012cace1b3f5658dcc3b42e> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-62796> (advisory)
- <https://github.com/PrivateBin/PrivateBin> (package)

## Sources

- CVE List: [CVE-2025-62796](https://www.cve.org/CVERecord?id=CVE-2025-62796), CVE Terms of Use, modified 2025-10-29
- GitHub Advisory Database: [GHSA-867c-p784-5q6g](https://github.com/advisories/GHSA-867c-p784-5q6g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-62796](https://nvd.nist.gov/vuln/detail/CVE-2025-62796), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-62796 · Whole record: https://cve.day/CVE-2025-62796.json · Rebuilt by cve.day 2026-11-25T22:59:06.972Z
