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

Source: https://junglewise.ai/threats/cve-2020-5223-persistent-xss-vulnerability-in-filename-of-attached-file-in  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2020-01-14  
License: CC BY 4.0 with a link back

CVE-2020-5223 · Severity: low · CVSS 3.1 · Published 2020-01-14

Persistent XSS vulnerability in filename of attached file in PrivateBin

Technologies: [privatebin/privatebin (Packagist)](https://junglewise.ai/threats/technologies/privatebin-privatebin). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2020-5223 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2020-5223 being exploited in the wild.

**How severe is CVE-2020-5223?** Low severity, with a CVSS score of 3.1, published 14 January 2020.

**Which products and versions are affected?** privatebin/privatebin (Packagist) ECOSYSTEM:introduced=0,fixed=1.2.2.

**Is there a fix for CVE-2020-5223?** Yes. privatebin/privatebin (Packagist): upgrade to 1.2.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2020-5223?** Check whether you run privatebin/privatebin (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- privatebin/privatebin (Packagist): upgrade to 1.2.2 or later

  ```sh
  composer require privatebin/privatebin:^1.2.2
  ```


## Affected products

- privatebin/privatebin (Packagist) ECOSYSTEM:introduced=0,fixed=1.2.2

## Identifiers

- CVE-2020-5223
- GHSA-8j72-p2wm-6738

## Related threats

- [PrivateBin reflected JSON injection in jsonld endpoints](https://junglewise.ai/threats/cve-2026-55891-privatebin-reflected-json-injection-in-jsonld-endpoints)
- [PrivateBin stored XSS in attachment download link](https://junglewise.ai/threats/cve-2026-55696-privatebin-stored-xss-in-attachment-download-link)
- [PrivateBin's template-switching feature allows arbitrary local file inclusion through path traversal](https://junglewise.ai/threats/cve-2025-64714-privatebin-s-template-switching-feature-allows-arbitrary-local)
- [PrivateBin vulnerable to malicious filename use for self-XSS / HTML injection locally for users](https://junglewise.ai/threats/cve-2025-64711-privatebin-vulnerable-to-malicious-filename-use-for-self-xss-html)
- [PrivateBin is missing HTML sanitization of attached filename in file size hint](https://junglewise.ai/threats/cve-2025-62796-privatebin-is-missing-html-sanitization-of-attached-filename-in)
