{"id":"CVE-2026-55696","published":"2026-08-28T20:20:53Z","modified":"2026-08-31T18:53:53Z","title":"PrivateBin: Stored Cross-Side-Scripting (XSS) vulnerability in attachment download link via dangerous MIME types with…","vendor":"PrivateBin","product":"PrivateBin","tier":"tail","description":{"text":"PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Prior to 2.0.5, AttachmentViewer.setAttachment in js/privatebin.js uses getAttachmentMimeType to accept attacker-controlled MIME types and uses getBlobUrl to create a same-origin blob before setting attachmentLink's href for the Download attachment link. The SVG-only sanitization branch updates only the preview blob, so text/html, image/svg, application/xhtml+xml, and text/xml attachments can remain active in the download blob. On an instance with fileupload = true and a weakened, stripped, or absent Content Security Policy, an anonymous attacker can create such an attachment, and a victim who opens the link in a new tab causes inline JavaScript to execute in the PrivateBin origin. The script can read origin-scoped local storage and issue same-origin requests, including requests to applications co-hosted on the same domain. This issue is fixed in version 2.0.5.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00438,"percentile":0.3891,"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-f2xf-7x3g-4272","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PrivateBin/PrivateBin/commit/7f1f40853efe0eb12db9cc4a30ea8524ac00f423","tags":["x_refsource_MISC"]},{"url":"https://github.com/PrivateBin/PrivateBin/releases/tag/2.0.5","tags":["x_refsource_MISC"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":7.78},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"privatebin","affectedVersions":[{"vendor":"PrivateBin","product":"PrivateBin","versions":["< 2.0.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-31T15:21:13.636591Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"privatebin/privatebin","vulnerableRanges":["<2.0.5"],"patched":["2.0.5"],"from":["GHSA-f2xf-7x3g-4272"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-67938","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-privatebin-cve-2025-62796","parents":[{"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-64711","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/f9550e513381208b36595ee2404e968144bba78b","https://github.com/PrivateBin/PrivateBin/commit/7f1f40853efe0eb12db9cc4a30ea8524ac00f423","https://github.com/PrivateBin/PrivateBin/commit/e0dd4c025c19a182b6a4c6fb77a8bf81ceff6899"],"basis":"shared function","functions":["Configuration"]}]}],"children":[{"from":"CVE-2026-55696","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/7f1f40853efe0eb12db9cc4a30ea8524ac00f423","https://github.com/PrivateBin/PrivateBin/commit/e0dd4c025c19a182b6a4c6fb77a8bf81ceff6899","https://github.com/PrivateBin/PrivateBin/commit/164c839c39688533ef0086575878e8392cd21249","https://github.com/PrivateBin/PrivateBin/commit/75f056dcda955d94c17ec5a4f8c54a9b7bfcee07"],"basis":"shared function","functions":["Configuration"]}]}],"packageHistory":[{"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-64714","to":"CVE-2026-55696","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:privatebin/privatebin","fromFixed":"2.0.3","toFixed":"2.0.5","daysApart":288}]}},{"cve":"CVE-2026-55696","published":"2026-08-28","fixed":"2.0.5","kev":false},{"cve":"CVE-2026-55891","published":"2026-08-28","fixed":"2.0.5","kev":false}],"package":"Packagist:privatebin/privatebin"}}