Disclosed weakness · no CVE recorded

Claude Code purge could report success while symlinked history remained

Anthropic · Claude Code history purge

First documented disclosure · Review checkpoint

Summary

The purge command could say that history was deleted when its history file was a symbolic link.

Severity and exploitation evidence

No CVSS score recorded in this review.

Exploitation not established: The reviewed originals establish a reported weakness or correction, not malicious exploitation or identified victims. Controlled tests remain attributed to their authors; no product, model or proof of concept was executed in this review.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

The deletion result did not accurately reflect the symlink case; the correction reports the item as not deleted and identifies where prompts must be removed.

Conditions required

The history file is a symlink and the user runs claude purge expecting prompt deletion.

Potential impact

Prompt history can remain despite a success report. Disclosure additionally requires access to the retained file; arbitrary symlink-target modification is not established.

Affected versions and configurations

Exact introduction and complete affected release range are not disclosed.

Fix and mitigation status

2.1.334 stable corrects reporting; it does not promise automatic deletion of the symlink target.

Practical next steps

Update and separately verify removal of prompts from the indicated history location.

Operating lesson

Privacy-sensitive deletion needs a verified result, including link handling.

Evidence and limits

Maintainer release notes establish the corrected behavior. Implementation and runtime behavior were not independently reproduced. No CVE or numeric severity is assigned.

Sources