{"id":"CVE-2026-55891","published":"2026-08-28T20:23:50Z","modified":"2026-08-31T18:47:39Z","title":"PrivateBin: Reflected JSON injection in backend responses via unescaped REQUEST_URI","vendor":"PrivateBin","product":"PrivateBin","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":0,"severity":"NONE","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00539,"percentile":0.38868,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-xrjc-c68j-hp7w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PrivateBin/PrivateBin/commit/164c839c39688533ef0086575878e8392cd21249","tags":["x_refsource_MISC"]},{"url":"https://github.com/PrivateBin/PrivateBin/releases/tag/2.0.5","tags":["x_refsource_MISC"]}],"priority":{"score":7.8,"factors":[{"name":"EPSS percentile","points":7.77}]},"vendorSlug":"privatebin","affectedVersions":[{"vendor":"PrivateBin","product":"PrivateBin","versions":["< 2.0.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-31T18:47:12.873010Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"privatebin/privatebin","vulnerableRanges":["<2.0.5"],"patched":["2.0.5"],"from":["GHSA-xrjc-c68j-hp7w"],"provenance":"source"}],"summary":{"text":"PrivateBin, the online pastebin application, has a reflected JSON injection flaw in its backend JSON-LD responses: the request URI is not JSON-escaped before being inserted into the templates behind /?jsonld= and /?pasteid, affecting versions before 2.0.5.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:46Z"},"euvd":{"id":"EUVD-2026-67940","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-privatebin-cve-2025-62796","parents":[{"from":"CVE-2025-62796","to":"CVE-2026-55891","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/Configuration.php"],"commits":["https://github.com/PrivateBin/PrivateBin/commit/c4f8482b3072be7ae012cace1b3f5658dcc3b42e","https://github.com/PrivateBin/PrivateBin/commit/164c839c39688533ef0086575878e8392cd21249","https://github.com/PrivateBin/PrivateBin/commit/75f056dcda955d94c17ec5a4f8c54a9b7bfcee07"],"basis":"shared function","functions":["Configuration"]}]},{"from":"CVE-2025-64711","to":"CVE-2026-55891","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/Configuration.php"],"commits":["https://github.com/PrivateBin/PrivateBin/commit/f9550e513381208b36595ee2404e968144bba78b","https://github.com/PrivateBin/PrivateBin/commit/164c839c39688533ef0086575878e8392cd21249","https://github.com/PrivateBin/PrivateBin/commit/75f056dcda955d94c17ec5a4f8c54a9b7bfcee07"],"basis":"shared function","functions":["Configuration"]}]},{"from":"CVE-2026-55696","to":"CVE-2026-55891","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/Configuration.php"],"commits":["https://github.com/PrivateBin/PrivateBin/commit/7f1f40853efe0eb12db9cc4a30ea8524ac00f423","https://github.com/PrivateBin/PrivateBin/commit/e0dd4c025c19a182b6a4c6fb77a8bf81ceff6899","https://github.com/PrivateBin/PrivateBin/commit/164c839c39688533ef0086575878e8392cd21249","https://github.com/PrivateBin/PrivateBin/commit/75f056dcda955d94c17ec5a4f8c54a9b7bfcee07"],"basis":"shared function","functions":["Configuration"]}]}],"packageHistory":[{"cve":"CVE-2025-64711","published":"2025-11-13","fixed":"2.0.3","kev":false},{"cve":"CVE-2025-64714","published":"2025-11-13","fixed":"2.0.3","kev":false,"link":{"from":"CVE-2025-64714","to":"CVE-2026-55891","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:privatebin/privatebin","fromFixed":"2.0.3","toFixed":"2.0.5","daysApart":288}]}},{"cve":"CVE-2026-55696","published":"2026-08-28","fixed":"2.0.5","kev":false},{"cve":"CVE-2026-55891","published":"2026-08-28","fixed":"2.0.5","kev":false}],"package":"Packagist:privatebin/privatebin"}}