{"id":"CVE-2025-62796","published":"2025-10-28T20:47:50Z","modified":"2025-10-29T13:31:54Z","title":"PrivateBin persistent HTML injection in attachment filename enables redirect and defacement","vendor":"PrivateBin","product":"PrivateBin","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00295,"percentile":0.22649,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"}],"references":[{"url":"https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-867c-p784-5q6g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PrivateBin/PrivateBin/pull/1550","tags":["x_refsource_MISC"]},{"url":"https://github.com/PrivateBin/PrivateBin/commit/c4f8482b3072be7ae012cace1b3f5658dcc3b42e","tags":["x_refsource_MISC"]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":4.53},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"privatebin","affectedVersions":[{"vendor":"PrivateBin","product":"PrivateBin","versions":[">= 1.7.7, < 2.0.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-10-29T13:30:18.884080Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"privatebin/privatebin","vulnerableRanges":[">=1.7.7, <2.0.2"],"patched":["2.0.2"],"from":["GHSA-867c-p784-5q6g"],"provenance":"source"}],"summary":{"text":"PrivateBin, an online pastebin, has a persistent HTML injection flaw in its handling of attachment filenames (attachment_name) in versions 1.7.7 through 2.0.1 when attachments are enabled, where the unsanitized name is inserted unescaped into the page after decryption. An attacker who can create a paste can alter the attachment name before encryption and, with no authentication or user interaction required, use the injected HTML to perform redirects or defacement and related phishing, though the recommended Content Security Policy normally blocks script execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:43Z"},"euvd":{"id":"EUVD-2025-36556","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-privatebin-cve-2025-62796","children":[{"from":"CVE-2025-62796","to":"CVE-2025-64711","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:privatebin/privatebin","fromFixed":"2.0.2","toFixed":"2.0.3","daysApart":16},{"kind":"same-code","provenance":"machine","files":["js/privatebin.js","lib/Configuration.php"],"commits":["https://github.com/PrivateBin/PrivateBin/commit/c4f8482b3072be7ae012cace1b3f5658dcc3b42e","https://github.com/PrivateBin/PrivateBin/commit/f9550e513381208b36595ee2404e968144bba78b"],"basis":"shared function","functions":["Configuration"]}]},{"from":"CVE-2025-62796","to":"CVE-2026-55696","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["js/privatebin.js","lib/Configuration.php"],"commits":["https://github.com/PrivateBin/PrivateBin/commit/c4f8482b3072be7ae012cace1b3f5658dcc3b42e","https://github.com/PrivateBin/PrivateBin/commit/7f1f40853efe0eb12db9cc4a30ea8524ac00f423","https://github.com/PrivateBin/PrivateBin/commit/e0dd4c025c19a182b6a4c6fb77a8bf81ceff6899"],"basis":"shared function","functions":["Configuration"]}]},{"from":"CVE-2025-62796","to":"CVE-2026-55891","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/Configuration.php"],"commits":["https://github.com/PrivateBin/PrivateBin/commit/c4f8482b3072be7ae012cace1b3f5658dcc3b42e","https://github.com/PrivateBin/PrivateBin/commit/164c839c39688533ef0086575878e8392cd21249","https://github.com/PrivateBin/PrivateBin/commit/75f056dcda955d94c17ec5a4f8c54a9b7bfcee07"],"basis":"shared function","functions":["Configuration"]}]}],"packageHistory":[{"cve":"CVE-2020-5223","published":"2020-01-23","fixed":"1.3.2","kev":false},{"cve":"CVE-2022-24833","published":"2022-04-11","fixed":"1.4.0","kev":false},{"cve":"CVE-2024-39899","published":"2024-07-09","fixed":"1.7.4","kev":false},{"cve":"CVE-2025-62796","published":"2025-10-28","fixed":"2.0.2","kev":false},{"cve":"CVE-2025-64711","published":"2025-11-13","fixed":"2.0.3","kev":false},{"cve":"CVE-2025-64714","published":"2025-11-13","fixed":"2.0.3","kev":false,"link":{"from":"CVE-2025-62796","to":"CVE-2025-64714","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:privatebin/privatebin","fromFixed":"2.0.2","toFixed":"2.0.3","daysApart":16}]}},{"cve":"CVE-2026-55696","published":"2026-08-28","fixed":"2.0.5","kev":false}],"package":"Packagist:privatebin/privatebin"}}