{"answers":{"affected":"2 open source packages ship an affected version, including privatebin/privatebin.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-55891 exists.","fix":"Upgrade privatebin/privatebin to 2.0.5 or later.","what":"CVE-2026-55891 is a code injection vulnerability in PrivateBin, published on 28 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-55891 and fix it if it is affected.\n\nWhat it is: CVE-2026-55891 is a code injection vulnerability in PrivateBin, published on 28 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-55891 exists.\n\nAffected packages and fixed versions:\n- privatebin/privatebin (Packagist): affected all versions; fixed in 2.0.5\n- privatebin/privatebin (Packagist): affected all versions; fixed in 2.0.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-55891/ (Markdown: https://insights.sbomify.com/CVE-2026-55891/index.md)","id":"CVE-2026-55891","markdown":"https://insights.sbomify.com/CVE-2026-55891/index.md","name":"CVE-2026-55891","record":{"aliases":["GHSA-xrjc-c68j-hp7w"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"PrivateBin pastebin","requires_auth":"none","summary":"Attackers can inject arbitrary JSON data into PrivateBin responses via unescaped REQUEST_URI, affecting structured-data consumers and bypassing security headers.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":0,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"PrivateBin: Reflected JSON injection in backend responses via unescaped REQUEST_URI","id":"CVE-2026-55891","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Vim: Out-of-bounds Write in Spell File Prefix Dump","id":"CVE-2026-55892"},"packages":[{"ecosystem":"Packagist","fixed":["2.0.5"],"introduced":["0"],"last_affected":[],"package":"privatebin/privatebin","purl":null,"source":"GHSA-xrjc-c68j-hp7w"},{"ecosystem":"Packagist","fixed":["2.0.5"],"introduced":["0"],"last_affected":[],"package":"privatebin/privatebin","purl":"pkg:composer/privatebin/privatebin","source":"GHSA-xrjc-c68j-hp7w"}],"prev":{"headline":"Grav: Stored CSS injection via Markdown image ?style=… reaches MediaObjectTrait::style()","id":"CVE-2026-55890"},"products":["PrivateBin"],"published":"2026-08-28","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-31","vendors":["PrivateBin"]},"summary":"Attackers can inject arbitrary JSON data into PrivateBin responses via unescaped REQUEST_URI, affecting structured-data consumers and bypassing security headers.","url":"https://insights.sbomify.com/CVE-2026-55891/"}