GHSA-rw72-639f-x4f2: 
JavaScript Analyse et atténuation de la vulnérabilité

Summary

In @atpdeveloper/atp-cli 0.1.2 and earlier, the Claude Code guard installed by atp guard install claude-code can be bypassed: a repository's .atp/settings.json can loosen the user's policy, some tools are never evaluated, a failing hook lets the tool call proceed, and the guarded agent can read ATP's signing key and edit settings files. Fixed in 0.2.0; users must upgrade and re-run atp guard install claude-code.

Details

  1. Project settings replaced trusted policy. loadSettings merged <repo>/.atp/settings.json over the user's ~/.atp/settings.json, so a repository could change profile (for example to dev-mode) or remap tools to allowed categories.
  2. Incomplete tool coverage. The installed PreToolUse hook used a fixed matcher list. Other Claude Code tools, MCP tools and skill-injected shell commands (PreSkillShellCommand) never reached ATP.
  3. Fail-open hook. The hook was installed without onFailure. If the hook executable was missing, exited with an unexpected code or timed out, Claude Code continued with the tool call.
  4. ATP state reachable by the agent. Claude Code file tools could read ~/.atp/identity.json (the audit signing key) and write ~/.atp, .claude/settings.json and .atp/settings.json. Fix (0.2.0):
  • Project settings are applied as a separate layer that can only tighten: ATP takes the stricter of the trusted and project decisions.
  • The hook matches every tool and also handles PreSkillShellCommand. Claude Code tools are classified explicitly, and unknown tools follow the profile's unknown-action rule.
  • Deciding hooks are installed with onFailure: "block" (Claude Code 2.1.295+) and a 10-second timeout.
  • File tools are denied inside ATP's home directory and on Claude Code and ATP settings files.
  • Audit entries separate authorization decisions from runtime-reported outcomes.
  • atp doctor checks the Claude Code version, hook coverage, onFailure, hook executables and disableAllHooks.

Proof of concept

Tested with Claude Code 2.1.335 on Linux. Project settings bypass:

  1. npm install -g @atpdeveloper/atp-cli@0.1.2, then atp guard install claude-code (default profile: safe-default).
  2. In a project directory, create .atp/settings.json containing {"profile":"dev-mode"}.
  3. Start Claude Code in that directory and ask it to create a file with the Write tool. Result on 0.1.2: the file is written. Result on 0.2.0: the call is denied. Fail-open hook:
  4. Install the guard, then make the hook command point to a path that does not exist (for example, remove or move the installed CLI).
  5. Ask Claude Code to run a shell command. Result on 0.1.2: the command runs. Result on 0.2.0 with Claude Code 2.1.295+: the call is blocked.

Impact

Policy bypass (incorrect authorization, failing open). Affects users of @atpdeveloper/atp-cli <= 0.1.2 who rely on atp guard install claude-code to restrict what a Claude Code agent may do. Opening an untrusted repository, using tools outside the old matcher, or a broken hook installation lets agent actions run that the user's ATP profile would deny. The agent could also read the key that signs the ATP audit trail. Remaining limits after the fix: Claude Code below 2.1.295 ignores onFailure; the signing key is still readable by any process running as the same OS user; @ file mentions and skill-injected prompt text do not pass through tool hooks; the guard is not an operating-system sandbox.


Source: NVD

Connexe JavaScript Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

GHSA-jxvc-9hcf-fw42CRITICAL9.2
  • JavaScript logoJavaScript
  • mysql2
NonOuiDec 05, 2026
GHSA-mxg9-wm8p-75g7HIGH8.3
  • JavaScript logoJavaScript
  • mysql2
NonOuiDec 05, 2026
GHSA-rw72-639f-x4f2HIGH7.1
  • JavaScript logoJavaScript
  • @atpdeveloper/atp-cli
NonOuiDec 05, 2026
GHSA-6j7m-7ww6-rcr4MEDIUM5.5
  • JavaScript logoJavaScript
  • atp-hermes-hook
NonOuiDec 05, 2026
GHSA-2v74-9pcq-cq9mMEDIUMN/A
  • JavaScript logoJavaScript
  • multiple-cucumber-html-reporter
NonOuiDec 05, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités