Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-62796

MEDIUM 5.8EPSS 23%

PrivateBin persistent HTML injection in attachment filename enables redirect and defacement

Also known as GHSA-867c-p784-5q6g

Mitigation

  • Upgrade privatebin/privatebin to 2.0.2 or later.

Who should check

  • Projects that depend on Packagist package privatebin/privatebin (>= 1.7.7, < 2.0.2)
  • Anyone running PrivateBin >= 1.7.7, < 2.0.2

Vulnerability facts

Affected
privatebin/privatebin >= 1.7.7, < 2.0.2
Fixed in
2.0.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
5.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: None
  • Integrity impact: Low
  • Availability impact: None
EPSS
0.37% chance of exploitation in 30 days (percentile 23, 2026-11-26)
CWE
CWE-79, CWE-80
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Packagist privatebin/privatebin>= 1.7.7, < 2.0.22.0.2osv
PrivateBin>= 1.7.7, < 2.0.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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

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

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.

References

FAQ

Is CVE-2025-62796 being exploited?

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

How serious is CVE-2025-62796?

Medium: CVSS 5.8 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2025-62796?

privatebin/privatebin >= 1.7.7, < 2.0.2.

Is there a fix for CVE-2025-62796?

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

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

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.

Sponsors