# CVE-2020-5223: Persistent XSS vulnerability in filename of attached file in PrivateBin

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/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): 0.66%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-01-14T20:19:33.000Z
- Modified: 2026-07-08T06:00:51.872Z
- Also known as: GHSA-8j72-p2wm-6738
- Weaknesses: CWE-79
- Assigned by: GitHub_M

## Description

In PrivateBin versions 1.2.0 before 1.2.2, and 1.3.0 before 1.3.2, a persistent XSS attack is possible. Under certain conditions, a user provided attachment file name can inject HTML leading to a persistent Cross-site scripting (XSS) vulnerability. The vulnerability has been fixed in PrivateBin v1.3.2 & v1.2.2. Admins are urged to upgrade to these versions to protect the affected users.

(As written by CVE List.)

## Affected

- PrivateBin PrivateBin: >= 1.2.0, < 1.2.2; >= 1.3.0, < 1.3.2; from 1.2 before 1.2.2; from 1.3 before 1.3.2
- privatebin/privatebin (Packagist): before 1.2.2; from 1.3.0 before 1.3.2

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:N`
- NVD: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 2.1 Low `AV:N/AC:H/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-8j72-p2wm-6738> (exploit, third-party-advisory, web)
- <https://privatebin.info/news/v1.3.2-v1.2.2-release.html> (release-notes, vendor-advisory, web)
- <https://github.com/PrivateBin/PrivateBin/commit/8d0ac336d23cd8c98e71d5f21cdadcae9c8a26e6> (patch, web)
- <https://github.com/PrivateBin/PrivateBin/issues/554> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5223> (advisory)

## Sources

- CVE List: [CVE-2020-5223](https://www.cve.org/CVERecord?id=CVE-2020-5223), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-8j72-p2wm-6738](https://github.com/advisories/GHSA-8j72-p2wm-6738), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-5223](https://nvd.nist.gov/vuln/detail/CVE-2020-5223), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-5223 · Whole record: https://cve.day/CVE-2020-5223.json · Rebuilt by cve.day 2026-11-25T22:57:50.659Z
