Arbitrary Code Injection Affecting deepseek-tui package, versions >=0.3.0 <0.8.23


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-DEEPSEEKTUI-16726223
  • published17 May 2026
  • disclosed14 May 2026
  • credit47Cid

Introduced: 14 May 2026

NewCVE-2026-45311  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade deepseek-tui to version 0.8.23 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection via the run_tests process. An attacker can execute arbitrary code by introducing malicious test code into a repository, which is then automatically executed without user approval when tests are run. This is only exploitable if a repository contains malicious test code and the system is configured to auto-approve test execution.

Workaround

This vulnerability can be mitigated by requiring manual approval before running tests, aligning the approval process with that of shell execution.

CVSS Base Scores

version 4.0
version 3.1