Arbitrary Code Injection Affecting claude-code-cache-fix package, versions >=3.5.0 <3.5.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (6th percentile)

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-JS-CLAUDECODECACHEFIX-16691313
  • published14 May 2026
  • disclosed13 May 2026
  • creditschuay

Introduced: 13 May 2026

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

How to fix?

Upgrade claude-code-cache-fix to version 3.5.2 or higher.

Overview

claude-code-cache-fix is a Cache optimization proxy and interceptor for Claude Code. Fixes prompt cache bugs, stabilizes prefix, reduces quota burn.

Affected versions of this package are vulnerable to Arbitrary Code Injection via the tools/quota-statusline.sh process. An attacker can execute arbitrary Python code in the user's process by introducing a specially crafted directory name containing a Python triple-quote sequence, which is then reflected into a Python string literal and executed. This is only exploitable if the statusLine configuration is enabled and wired to tools/quota-statusline.sh as recommended in the affected versions.

Workaround

This vulnerability can be mitigated by disabling the statusline by removing the statusLine entry from the settings file, or by replacing tools/quota-statusline.sh with a script that does not pass stdin through python3 -c "..." (using a heredoc and environment variable is safe).

CVSS Base Scores

version 4.0
version 3.1