You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Snapshot files are written at path.join(checkpointDir, relativePath) without checking if relativePath escapes the workspace (e.g., if a model wrote an absolute path or a path containing ..). The snapshot read could thus write outside the checkpoints directory.
Environment
OS: Any
Node version: v22.20.0
Nanocoder version: 1.30.0
Provider: N/A
Model: N/A
Steps to Reproduce
Modify metadata.filesChanged or trick the model into creating a path containing ...
Trigger the checkpoint manager to save.
Expected Behavior
The path should be strictly validated and normalized to ensure it stays within the intended directory sandbox.
Actual Behavior
A path traversal vulnerability exists, allowing files to be written out of bounds.
Additional Context
I have searched existing issues to ensure this is not a duplicate
I can reproduce this issue consistently
This issue occurs with the latest version of nanocoder
Activity
MayurK-cmd commentedon Sep 4, 2026
Working on this
awhite0030 commentedon Sep 13, 2026
fix(checkpoint): refuse to snapshot files from outside the workspace (#…