CVE-2026-55891
PrivateBin: Reflected JSON injection in backend responses via unescaped REQUEST_URI
Also known as GHSA-xrjc-c68j-hp7w
Mitigation
- Upgrade privatebin/privatebin to 2.0.5 or later.
Who should check
- Projects that depend on Packagist package privatebin/privatebin (< 2.0.5)
- Anyone running PrivateBin < 2.0.5
Vulnerability facts
- Affected
- privatebin/privatebin < 2.0.5
- Fixed in
- 2.0.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.54% chance of exploitation in 30 days (percentile 39, 2026-11-26)
- CWE
- CWE-116
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist privatebin/privatebin | < 2.0.5 | 2.0.5 | osv |
| PrivateBin | < 2.0.5 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-55891. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-55891.md Affected: privatebin/privatebin < 2.0.5 Fixed in: 2.0.5 Steps: 1. Search this machine and project for privatebin/privatebin (Packagist), PrivateBin: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-55891 being exploited?
There is no confirmed exploitation: CVE-2026-55891 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.54% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-55891?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-55891?
privatebin/privatebin < 2.0.5.
Is there a fix for CVE-2026-55891?
Yes. Fixed in 2.0.5. Upgrade privatebin/privatebin to 2.0.5 or later.
How do I check if I'm affected by CVE-2026-55891?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.