CVE-2026-55891: PrivateBin - Stored XSS
- Cve: CVE-2026-55891
- Name: PrivateBin - Stored XSS
- 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.
- Impact: Attackers can inject arbitrary JSON data into application/ld+json responses, potentially affecting structured-data consumers and enabling data manipulation.
- Remediation: Update to version 2.0.5 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: low
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
- Epss score: 0.00539
- Epss percentile: 0.46002
- Assignee: [email protected]
- Published at: 2026-08-28T22:16:51Z
- Age in days: 88
- Modified at: 2026-09-09T21:09:13Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-55891
- Nvd status: deferred
- Checked, none or zero: cvss score, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-116 | Improper Encoding or Escaping of Output |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| privatebin:privatebin | < 2.0.5 | no | cna_alias_text | /v1/products/privatebin/privatebin |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| PrivateBin/PrivateBin | commit, fix, package, releases, security_advisory | yes | /v1/repositories/PrivateBin/PrivateBin |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 625
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports