Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-95183 Overview
CVE-2026-95183 is a prompt injection vulnerability in the context-compaction feature of DeepSeek Harness (dsh) at commit c291e796. Attackers can embed malicious instructions in external content that the harness ingests during context compaction. When the model processes this crafted content, it treats the injected text as trusted instructions. This enables adversaries to override system prompts, exfiltrate data, or trigger unintended tool invocations through the agent runtime.
Critical Impact
Successful exploitation lets a remote attacker hijack an LLM agent's instruction flow through untrusted external content, leading to confidentiality, integrity, and availability loss across the agent's execution context.
Affected Products
- DeepSeek Harness (dsh) at commit c291e796
- Agent workflows that invoke the context-compaction feature on untrusted external content
- Downstream integrations relying on dsh for retrieval or summarization
Discovery Timeline
- 2026-10-16 - CVE-2026-95183 published to the National Vulnerability Database (NVD)
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-95183
Vulnerability Analysis
The flaw sits in how dsh compacts large contexts before passing them to the model. During compaction, external content is concatenated with system and user instructions without a trust boundary. The model cannot distinguish adversary-authored text from operator-authored directives. This matches [CWE-94] Improper Control of Generation of Code, applied to natural-language instructions driving an agent.
An attacker who controls any ingested artifact can plant directives that steer subsequent tool use. Because the context-compaction pass rewrites and summarizes material, injected instructions can survive and propagate into later turns. The attack requires user interaction to trigger the ingestion workflow, but no authentication to the target harness.
Root Cause
The root cause is missing input isolation during context compaction. External content is treated as instructional input rather than untrusted data. There is no delimiter enforcement, structured prompting, or output filtering that separates ingested text from model directives. See the referenced GitHub Gist Code Snippet for the proof-of-concept behavior.
Attack Vector
The attacker stages crafted content on a resource the harness will read. This can include a web page, document, repository file, or API response. When dsh compacts that content, the injected instructions enter the model's working context. The model then follows attacker directives, which can call tools, modify files, or disclose sensitive context. Additional vendor context is available on the DeepSeek Website.
No verified exploitation code is published. The vulnerability mechanism is described in prose per the referenced advisory material.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-95183
Indicators of Compromise
- Agent tool invocations that do not correspond to legitimate user requests during or after a compaction event
- External documents containing instruction-like phrases such as "ignore previous instructions" or embedded role tags
- Unexpected outbound requests from the agent runtime immediately following ingestion of third-party content
Detection Strategies
- Log every context-compaction input and output, then diff compacted output against source material to flag instruction injection
- Apply content classifiers to ingested external text that score for imperative language targeting the model
- Alert on tool-call sequences that deviate from the user's stated task after a compaction pass
Monitoring Recommendations
- Centralize dsh runtime logs, tool-call traces, and retrieved content hashes in an analytics backend
- Track anomalous shifts in model output distribution immediately after processing external content
- Monitor agent egress for connections to unexpected domains, especially during long-running compaction workflows
How to Mitigate CVE-2026-95183
Immediate Actions Required
- Pin dsh away from commit c291e796 and avoid running context compaction over untrusted external content until a patched build is deployed
- Restrict the agent's tool permissions to the minimum required for current workflows
- Require human-in-the-loop confirmation for sensitive tool calls originating from compacted contexts
Patch Information
No vendor patch identifier is listed in the NVD entry at publication. Monitor the DeepSeek Website and the project's commit history for a fix that supersedes c291e796. Rebuild and redeploy once a corrected release is available.
Workarounds
- Sanitize and delimit external content with structured markers before it enters the compaction pipeline
- Enforce a system-prompt policy that instructs the model to treat ingested content as data, not instructions
- Gate tool execution behind an allowlist and require explicit operator approval for destructive actions
- Isolate agent execution in a sandboxed environment with no persistent credentials
# Configuration example: restrict dsh agent egress and tool scope
export DSH_TOOL_ALLOWLIST="read_file,search"
export DSH_REQUIRE_APPROVAL="write_file,exec,http_post"
export DSH_EGRESS_ALLOWLIST="api.internal.example.com"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

