Description
An issue in the context-compaction feature of DeepSeek Harness (dsh) commit c291e796 allows attackers to execute a prompt injection attack via crafted external content.
Published: 2026-10-16
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Apply Fix
AI Analysis

Impact

The defect lies in the context‑compaction routine of DeepSeek Harness, engineered in commit c291e796. Its purpose of condensing user prompts inadvertently permits arbitrary code to be embedded within the generated prompt. The vulnerability results in a classic prompt injection flaw, enabling an attacker to cause the harness to execute malicious code under its own process. This weakness is reflected in CWE‑94 (Improper Control of Generation of Code).

Affected Systems

Any deployment of DeepSeek Harness that incorporates the context‑compaction logic from the specified commit is vulnerable. The vendor has not catalogued a specific release number for the affected build, thus installations that predate the patch or have not yet updated past this commit are at risk.

Risk and Exploitability

The exploit is remotely achievable through externally supplied content, with no authentication required. The CVSS score of 8.8 indicates high severity. The EPSS score lies below 1 %, suggesting a low current probability of real‑world exploitation, and the issue is not listed in the CISA KEV catalog. Nonetheless, because it permits arbitrary code execution by manipulating prompt content, the flaw remains a serious risk, especially if the context‑compaction feature is exposed to untrusted inputs. Based on the description, it is inferred that the attack vector involves an attacker providing crafted content that is processed by the compaction component before being used to generate a prompt.

Generated by OpenCVE AI on October 23, 2026 at 07:04 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply any vendor‑supplied update that eliminates or secures the context‑compaction logic.
  • If no patch is available, disable the context‑compaction feature or restrict its use to trusted sources only.
  • Sanitize and validate all externally supplied content before it is passed to the compaction process to prevent injection.
  • Stay alert to DeepSeek release notes and security advisories for a fixed version and apply the update immediately when released.

Generated by OpenCVE AI on October 23, 2026 at 07:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 23 Oct 2026 09:45:00 +0000

Type Values Removed Values Added
First Time appeared Deepseek
Deepseek deepseek-harness
Vendors & Products Deepseek
Deepseek deepseek-harness

Fri, 23 Oct 2026 07:30:00 +0000

Type Values Removed Values Added
Title DeepSeek Harness Context‑Compaction Prompt Injection Vulnerability

Fri, 23 Oct 2026 00:45:00 +0000

Type Values Removed Values Added
Title Prompt Injection via Context‑Compaction in DeepSeek Harness
Weaknesses CWE-20

Wed, 21 Oct 2026 02:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-94
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 16 Oct 2026 18:00:00 +0000

Type Values Removed Values Added
Title Prompt Injection via Context‑Compaction in DeepSeek Harness
Weaknesses CWE-20

Fri, 16 Oct 2026 14:45:00 +0000

Type Values Removed Values Added
Description An issue in the context-compaction feature of DeepSeek Harness (dsh) commit c291e796 allows attackers to execute a prompt injection attack via crafted external content.
References

Subscriptions

Deepseek Deepseek-harness
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-21T01:55:26.148Z

Reserved: 2026-09-22T00:00:00.000Z

Link: CVE-2026-95183

cve-icon Vulnrichment

Updated: 2026-10-21T01:55:19.931Z

cve-icon NVD

Status : Deferred

Published: 2026-10-16T15:17:37.050

Modified: 2026-10-21T02:17:07.570

Link: CVE-2026-95183

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T09:30:11Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')