SCA: security update for @anthropic-ai/claude-code (GHSA-q5hj-mxqh-vv77)

high Tenable Self-Hosted Container Security Plugin ID 440806

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- In versions 2.1.63 through 2.1.83 of Claude Code, the folder trust determination logic used the git
worktree commondir file without validating its contents. An attacker could craft a malicious repository
with a commondir file pointing to a path the victim had previously trusted, causing Claude Code to bypass
its trust confirmation dialog and immediately execute hooks defined in `.claude/settings.json`.
Exploitation requires the victim to clone the malicious repository and run Claude Code within it, and the
attacker must know or guess a path the victim had already trusted. This issue has been fixed in version
2.1.84. (CVE-2026-40068)

Solution

Update the @anthropic-ai/claude-code library and its related packages to version 2.1.84 or later.

See Also

https://github.com/advisories/GHSA-q5hj-mxqh-vv77

Plugin Details

Severity: High

ID: 440806

Version: Revision 1.11

Type: Local

Family: SCA Checks

Published: 4/24/2026

Updated: 6/30/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-40068

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: High

Base Score: 7.7

Threat Score: 5.2

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 4/24/2026

Vulnerability Publication Date: 4/24/2026

Reference Information

CVE: CVE-2026-40068