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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.54% (percentile 39, 2026-11-28)
- **CWE:** CWE-116
- **Aliases:** GHSA-xrjc-c68j-hp7w
- **Published:** 2026-08-28T20:23:50.477Z
- **Modified:** 2026-09-09T21:09:13.080Z

## Who should check

- Projects that depend on Packagist package privatebin/privatebin (\< 2.0.5)
- Anyone running PrivateBin \< 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.

## Affected and fixed versions

- Packagist `privatebin/privatebin`: affected \< 2.0.5; fixed 2.0.5 (osv)
- PrivateBin: \< 2.0.5 (cvelist)

## Mitigation

- Upgrade privatebin/privatebin to 2.0.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-28).

### 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.

## References

- vendor: <https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-xrjc-c68j-hp7w>
- patch: <https://github.com/PrivateBin/PrivateBin/commit/164c839c39688533ef0086575878e8392cd21249>
- patch: <https://github.com/PrivateBin/PrivateBin/commit/75f056dcda955d94c17ec5a4f8c54a9b7bfcee07>
- other: <https://github.com/PrivateBin/PrivateBin/releases/tag/2.0.5>
- other: <https://github.com/PrivateBin/PrivateBin>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-55891>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-xrjc-c68j-hp7w> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-55891> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-55891>
