Case · DiggingBeagle record

lean-ctx MCP save and export tools wrote beyond their configured workspace

The lean-ctx MCP server accepted absolute and parent-relative output paths in save/export tools because its default legacy workspace authority returned user-supplied paths without confinement. GHSA-483j-9vcj-2gxx demonstrates an overwrite outside the approved workspace under normal process filesystem permissions.

Public disclosure: Nov 5, 2026

Scope

Reported security vulnerability; exploitation prerequisites and tested version scope matter. No real-world exploitation is established unless separately reported.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade C
Remediation
patch available
AI role
AGAINST AI
Basis and provenance

research demonstration; demonstrated. The cited primary disclosure supports the specific sequence and boundaries described here: An agent calls lean-ctx save or export with an absolute or parent-relative destination. The evidence does not independently establish consequences beyond the record's supported outcome; a numerical impact band cannot be justified from the available evidence. Evidence grade C reflects the source attribution and independent verification limits.

Assessed Nov 7, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    An agent calls lean-ctx save or export with an absolute or parent-relative destination.

  2. 02

    Legacy workspace authority returns the supplied path unchanged for those tools.

  3. 03

    The MCP server writes generated content beyond the configured project directory under its own filesystem permissions.

Claims & evidence

CLM-DB07-026-OUTCOMEGHSA-483j-9vcj-2gxx demonstrates an overwrite outside the approved workspace under normal process filesystem permissions. It identifies 3.12.2 as patched and distinguishes the already confined handoff tool.supported

Basis: reported finding

Link to claim
CLM-DB07-026-MECHANISMThe lean-ctx MCP server accepted absolute and parent-relative output paths in save/export tools because its default legacy workspace authority returned user-supplied paths without confinement.supported

Basis: reported finding

Link to claim

Implications

Canonicalize and revalidate every write destination, including symlink targets, for all file-producing tools.

Unknowns and contradictions

  • Limited by process write permissions and generated output; not proven arbitrary binary execution or wild exploitation.

Sources and citation

Material revision history

  1. Nov 7, 2026 · Published version · first publication · revision 227