{"answers":{"affected":"2 open source packages ship an affected version, including privatebin/privatebin.","exploited":"There is no known exploitation of CVE-2026-55696 in the wild and no public exploit code.","fix":"Upgrade privatebin/privatebin to 2.0.5 or later.","what":"CVE-2026-55696 is a medium-severity cross-site scripting vulnerability in PrivateBin, published on 28 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-55696 and fix it if it is affected.\n\nWhat it is: CVE-2026-55696 is a medium-severity cross-site scripting vulnerability in PrivateBin, published on 28 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-55696 in the wild and no public exploit code.\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-55696/ (Markdown: https://insights.sbomify.com/CVE-2026-55696/index.md)","id":"CVE-2026-55696","markdown":"https://insights.sbomify.com/CVE-2026-55696/index.md","name":"CVE-2026-55696","record":{"aliases":["GHSA-f2xf-7x3g-4272"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"PrivateBin pastebin","requires_auth":"none","summary":"An attacker can inject malicious scripts via attachment MIME types, allowing code execution in the victim's browser if file uploads are enabled and CSP is weak.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Prior to 2.0.5, AttachmentViewer.setAttachment in js/privatebin.js uses getAttachmentMimeType to accept attacker-controlled MIME types and uses getBlobUrl to create a same-origin blob before setting attachmentLink's href for the Download attachment link. The SVG-only sanitization branch updates only the preview blob, so text/html, image/svg, application/xhtml+xml, and text/xml attachments can remain active in the download blob. On an instance with fileupload = true and a weakened, stripped, or absent Content Security Policy, an anonymous attacker can create such an attachment, and a victim who opens the link in a new tab causes inline JavaScript to execute in the PrivateBin origin. The script can read origin-scoped local storage and issue same-origin requests, including requests to applications co-hosted on the same domain. 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":"none_known"},"has_fix":true,"headline":"PrivateBin has stored Cross-Side-Scripting (XSS) vulnerability in attachment download link via dangerous MIME types with required user-interaction","id":"CVE-2026-55696","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"pnpm: Repository-controlled configDependencies can select a pacquet native install engine","id":"CVE-2026-55697"},"packages":[{"ecosystem":"Packagist","fixed":["2.0.5"],"introduced":["0"],"last_affected":[],"package":"privatebin/privatebin","purl":null,"source":"GHSA-f2xf-7x3g-4272"},{"ecosystem":"Packagist","fixed":["2.0.5"],"introduced":["0"],"last_affected":[],"package":"privatebin/privatebin","purl":"pkg:composer/privatebin/privatebin","source":"GHSA-f2xf-7x3g-4272"}],"prev":{"headline":"FearlessCMS: Remote Code Execution via Unvalidated Update Repository URL in System Updater","id":"CVE-2026-55695"},"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-31","vendors":["PrivateBin"]},"summary":"An attacker can inject malicious scripts via attachment MIME types, allowing code execution in the victim's browser if file uploads are enabled and CSP is weak.","url":"https://insights.sbomify.com/CVE-2026-55696/"}