Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify exposed wastebin v3.4.1 instance
-
DeliveryCraft paste with HTML/JS injection payload
-
ExploitSubmit paste via anonymous endpoint
-
InstallDistribute paste URL to victim
-
C2Victim browser renders paste through highlight.rs
-
ExecuteInjected script executes in wastebin origin
-
ImpactHijack session or exfiltrate paste data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires (1) a reachable wastebin v3.4.1 instance that accepts paste submissions from the attacker - by default wastebin allows anonymous paste creation, so no credentials are needed; (2) the paste must be rendered through the syntax-highlighting code path in /src/highlight.rs, meaning the instance must have highlighting enabled (default) and the attacker must select or trigger a language mode that exercises the vulnerable rendering; and (3) a victim user must click and view the attacker-created paste URL in a JavaScript-enabled browser (UI:R). Limiting factors that reduce realistic risk: the victim-interaction requirement rules out worm-style propagation, an instance configured with a strict Content-Security-Policy or with syntax highlighting disabled is not exploitable, and wastebin instances are typically small private deployments rather than internet-scale targets. |
| Impact | The headline CVSS 3.1 score of 9.6 is unusually high for a stored XSS, driven by S:C (scope change to the browsing user's context) combined with C:H/I:H/A:H, and the AV:N/AC:L/PR:N profile reflects that any unauthenticated attacker can create a paste; however, UI:R correctly captures that a victim must visit the malicious paste for impact. Real-world risk is materially lower than the score suggests: EPSS is 0.18% (8th percentile), the issue is not on the CISA KEV list, and wastebin is a niche self-hosted application rather than a mass-deployed target, so automated exploitation at scale is unlikely. The single reference is a third-party gist rather than a vendor advisory, and no fix version, SSVC decision, or POC verification is provided in the input - these gaps should be resolved against the upstream GitHub repository before prioritization. Conflict to flag: the C:H/I:H/A:H impact rating is aggressive for an XSS where realistic impact is typically session theft or paste-content tampering, not full host compromise. |
| Exploit ScenarioDerived | An attacker submits a paste containing a crafted payload that, once processed by the highlight.rs renderer, breaks out of the intended highlighted-token markup and is served back as executable HTML/JavaScript; the attacker shares the paste URL with a target user (e.g., via chat, email, or a phishing link). When the victim opens the paste in a browser, the injected script runs in the wastebin origin and can steal session cookies, exfiltrate other pastes the victim can access, or perform actions on the victim's behalf. A proof-of-concept payload appears to be published in a referenced gist, but no public exploit identified at time of analysis as a fully weaponized tool. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 16, 2026
Stored HTML/script injection in matze wastebin v3.4.1 allows remote unauthenticated attackers to execute arbitrary JavaScript in the browser of any user who views a crafted paste, by abusing improper output encoding in the /src/highlight.rs syntax-highlighting component. A public gist appears to demonstrate the issue, but no public exploit identified at time of analysis as weaponized tooling, and EPSS exploitation probability is low at 0.18% (8th percentile).
RemediationAI
No vendor-released patch identified at time of analysis - operators should monitor the upstream wastebin GitHub repository for a release newer than 3.4.1 that addresses the highlight.rs encoding issue and upgrade as soon as a fixed tag is published; the NVD entry at https://nvd.nist.gov/vuln/detail/CVE-2026-50883 should be checked for an updated patch reference. As compensating controls until a fix is available, deploy a strict Content-Security-Policy response header on the wastebin host that disallows inline scripts (e.g., script-src 'self' without 'unsafe-inline'), which neutralizes injected <script> blocks at the cost of breaking any legitimate inline scripting in custom themes; restrict paste creation to authenticated or IP-allowlisted users via a reverse proxy to remove the unauthenticated attack surface, accepting the loss of anonymous public-paste functionality; and disable or replace the syntax-highlighting feature on the instance if the deployment can tolerate plain-text rendering, which eliminates the vulnerable code path entirely.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Wastebin is a self-hosted Rust-based pastebin service maintained by upstream developer 'matze'. The vulnerable code path is the highlight.rs module, which is responsible for rendering user-submitted snippets with syntax highlighting before emitting them as HTML. CWE-79 (Improper Neutralization of Input During Web Page Generation) indicates the highlighter is failing to encode or sanitize user-controlled tokens before they are interpolated into the HTML response, so an attacker-controlled paste body is rendered as live markup rather than inert text. Because pastes are served back to any visitor of the paste URL, the flaw behaves as a stored cross-site scripting issue executing in the wastebin origin.
Know when N A gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Anonymous paste creation gives PR:N and AC:L over the network; victim must view the paste (UI:R); stored XSS changes scope to the browser (S:C) with limited C/I and no availability impact.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
An HTML injection vulnerability in the /src/highlight.rs component of matze wastebin v3.4.1 allows attackers to execute arbitrary scripts via a crafted payload.
Executive ViewAI
matze wastebin v3.4.1 contains a critical stored cross-site scripting vulnerability that allows unauthenticated users to inject malicious JavaScript affecting all users who view affected pastes. No public exploit identified at time of analysis; however, with CVSS 9.6 severity and no available patch, immediate mitigation is required to prevent potential account compromise and data theft.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deploy strict Content-Security-Policy headers with script-src 'none' to prevent inline JavaScript execution; (2) Disable HTML/script rendering and enforce text-only or markdown-only paste viewing mode; (3) Implement WAF rules to filter pastes containing <script> tags and event handler attributes; (4) Add server-side HTML entity encoding on all paste display output; (5) Restrict wastebin access to authenticated users only; (6) Monitor paste submissions for malicious patterns including JavaScript keywords and encoded payloads.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2026-36781
GHSA-ch49-46cv-33f2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB