Skip to main content
EPSS 0.5%top 56%

PrivateBin has reflected JSON injection in backend responses via unescaped REQUEST_URI (CVE-2026-55891)

0
Low
Published: 08/28/2026 (08/28/2026, 20:25:34 UTC)
Source: GCVE Database
Product: privatebin/privatebin

Description

PrivateBin versions prior to 2.0.5 contain a reflected JSON injection vulnerability in JSON-LD backend responses via unescaped REQUEST_URI values. The issue arises because the request URI is sanitized with FILTER_SANITIZE_URL, which does not remove certain characters like quotes, allowing attacker-controlled input to be injected into JSON responses without proper escaping. This leads to malformed JSON responses served with CORS headers and missing the X-Content-Type-Options: nosniff header, creating a defense-in-depth gap. No direct script execution has been demonstrated, but the vulnerability could affect structured-data consumers or be combined with other issues. A patch is available that properly escapes injected content and restores missing security headers.

CVSS v3.1

Score 0.0none

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N

Affected software

Packagistghsa
privatebin/privatebin
Affected versions
<2.0.5

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/09/2026, 18:38:17 UTC

Technical Analysis

The vulnerability in PrivateBin (CVE-2026-55891) is a reflected JSON injection caused by improper sanitization of the REQUEST_URI. The method getRequestUri() uses PHP's FILTER_SANITIZE_URL, which does not remove characters such as double quotes. This unsanitized URI is then inserted directly into JSON-LD template files via str_replace without JSON escaping, allowing an attacker to inject arbitrary key/value pairs into the JSON response. The affected response is served with 'Content-Type: application/ld+json' and 'Access-Control-Allow-Origin: *' headers but lacks the 'X-Content-Type-Options: nosniff' header, which is present in other response paths. This flaw allows unauthenticated attackers to manipulate JSON-LD responses, potentially impacting clients that consume this structured data. The vulnerability was confirmed on version 2.0.4 and fixed in version 2.0.5 by adding proper JSON escaping and restoring missing security headers.

Potential Impact

The vulnerability allows unauthenticated attackers to inject arbitrary content into JSON-LD responses, which are served with permissive CORS headers. This can lead to malformed or attacker-controlled JSON data being consumed by any origin. Although no direct script execution or browser-based exploitation has been demonstrated, the injection represents a CWE-116 output encoding flaw and a missing defense-in-depth security header (X-Content-Type-Options: nosniff) on this response path. This could potentially be exploited by structured-data consumers or in combination with other vulnerabilities.

Mitigation Recommendations

A patch is available in PrivateBin version 2.0.5 that properly escapes injected content in JSON-LD responses and restores the missing X-Content-Type-Options: nosniff header on this response path. Users should upgrade to version 2.0.5 or later to remediate this issue. Until patched, avoid exposing PrivateBin instances to untrusted clients that might craft raw HTTP requests with unescaped characters in the request URI.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-xrjc-c68j-hp7w
Osv Schema Version
1.4.0
Aliases
["CVE-2026-55891"]
Ecosystems
["Packagist"]
Database Specific Severity
LOW
Cvss Version
3.1

Threat ID: 6a92f81dacd9273b49e9113a

Added to database: 08/29/2026, 15:17:49 UTC

Last enriched: 09/09/2026, 18:38:17 UTC

Last updated: 10/13/2026, 18:48:21 UTC

Views: 89

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses