# Persistent XSS vulnerability in filename of attached file in PrivateBin

Advisory record · `GHSA-8j72-p2wm-6738`

- **Identifiers:** `GHSA-8j72-p2wm-6738` · `CVE-2020-5223` · `PKSA-bqnp-z3jb-jmqd`
- **State:** Confirmed
- **Severity:** CVSS 6.1 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 14 Jan 2020
- **Updated:** 8 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 14 Jan 2020, 20:19 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `privatebin/privatebin` (Packagist): affected `<1.2.2 || >=1.3.0, <1.3.2`; fixed in `1.2.2`, `1.3.2`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> PrivateBin versions before 1.2.2 and from 1.3.0 before 1.3.2 are vulnerable to persistent cross-site scripting through the filename of an attached file, because the name was not HTML-escaped. An attacker who creates a paste with a malicious filename can run script in the browser of a visitor who clicks the "Clone" button, which requires the fileupload setting to be enabled and the CSP header to be absent or relaxed. Upgrade to PrivateBin 1.2.2 or 1.3.2.

Written 3 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.1 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0066, the 46th percentile, on 28 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:25 UTC: First seen by agentprime
- 31 Oct 2026, 14:25 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-8j72-p2wm-6738)

## Sources

- [GitHub Advisory Database: GHSA-8j72-p2wm-6738](https://github.com/advisories/GHSA-8j72-p2wm-6738)
- [OSV: GHSA-8j72-p2wm-6738](https://osv.dev/vulnerability/GHSA-8j72-p2wm-6738)
- <https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-8j72-p2wm-6738>
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5223>
- <https://github.com/PrivateBin/PrivateBin/issues/554>
- <https://github.com/PrivateBin/PrivateBin/commit/8d0ac336d23cd8c98e71d5f21cdadcae9c8a26e6>
- <https://privatebin.info/news/v1.3.2-v1.2.2-release.html>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-8j72-p2wm-6738>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-8j72-p2wm-6738/>. Everything for agents: <https://agentprime.io/llms.txt>.
