# CVE-2022-24833: Persistent Cross-site Scripting (XSS) vulnerability in PrivateBin

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/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): 1.36%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-04-11T20:20:33.000Z
- Modified: 2026-06-17T04:32:37.347Z
- Also known as: GHSA-cqcc-mm6x-vmvw
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- PrivateBin PrivateBin: >= v0.21, < v1.4.0; from 0.21 before 1.4.0
- privatebin/privatebin (Packagist): from 0.21 before 1.4.0

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-cqcc-mm6x-vmvw> (exploit, third-party-advisory, web)
- <https://github.com/PrivateBin/PrivateBin/commit/2a4d572c1e9eb9b608d32b0cc0cb3b6c3b684eab> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24833> (advisory)
- <https://github.com/PrivateBin/PrivateBin> (package)

## Sources

- CVE List: [CVE-2022-24833](https://www.cve.org/CVERecord?id=CVE-2022-24833), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-cqcc-mm6x-vmvw](https://github.com/advisories/GHSA-cqcc-mm6x-vmvw), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-24833](https://nvd.nist.gov/vuln/detail/CVE-2022-24833), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24833 · Whole record: https://cve.day/CVE-2022-24833.json · Rebuilt by cve.day 2026-11-25T22:58:10.544Z
