{"id":"CVE-2022-24833","published":"2022-04-11T20:20:33Z","modified":"2025-04-22T18:16:25Z","title":"Persistent Cross-site Scripting (XSS) vulnerability in PrivateBin","vendor":"PrivateBin","product":"PrivateBin","tier":"tail","description":{"text":"PrivateBin is minimalist, open source online pastebin clone where the server has zero knowledge of pasted data. In PrivateBin < v1.4.0 a cross-site scripting (XSS) vulnerability was found. The vulnerability is present in all versions from v0.21 of the project, which was at the time still called ZeroBin. The issue is caused by the fact that SVGs can contain JavaScript. This can allow an attacker to execute code, if the user opens a paste with a specifically crafted SVG attachment, and interacts with the preview image and the instance isn't protected by an appropriate content security policy. Users are advised to either upgrade to version 1.4.0 or to ensure the content security policy of their instance is set correctly.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01225,"percentile":0.6872,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-cqcc-mm6x-vmvw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PrivateBin/PrivateBin/commit/2a4d572c1e9eb9b608d32b0cc0cb3b6c3b684eab","tags":["x_refsource_MISC"]}],"priority":{"score":19.5,"factors":[{"name":"EPSS percentile","points":13.74},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"privatebin","affectedVersions":[{"vendor":"PrivateBin","product":"PrivateBin","versions":[">= v0.21, < v1.4.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-22T15:48:55.618680Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"privatebin/privatebin","vulnerableRanges":[">=0.21, <1.4.0"],"patched":["1.4.0"],"from":["GHSA-cqcc-mm6x-vmvw"],"provenance":"source"}],"summary":{"text":"The flaw is a persistent cross-site scripting vulnerability in the PrivateBin pastebin, arising because SVG attachments can carry JavaScript and the affected versions (before 1.4.0, dating back to v0.21) render them unsafely. An unauthenticated remote attacker can run script in a victim's browser by getting them to open a paste containing a crafted SVG attachment and interact with its preview image, provided the instance lacks an appropriate content security policy.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:34Z"},"euvd":{"id":"EUVD-2022-1711","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-privatebin-cve-2020-5223","parents":[{"from":"CVE-2020-5223","to":"CVE-2022-24833","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["js/privatebin.js","tpl/bootstrap.php","tpl/page.php"],"commits":["https://github.com/PrivateBin/PrivateBin/commit/8d0ac336d23cd8c98e71d5f21cdadcae9c8a26e6","https://github.com/PrivateBin/PrivateBin/commit/2a4d572c1e9eb9b608d32b0cc0cb3b6c3b684eab"],"basis":"rarely changed file"}]}]}}