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
claude-task-master has a path traversal vulnerability in parsePrdToHamster. When prdPath is absolute, the function accepts it directly and reads the file without requiring it to be inside the project root. The PRD content is then forwarded to downstream integration logic, creating an arbitrary local file read and exfiltration primitive for files readable by the process.
Steps to Reproduce
Prepare a project root and a separate file outside it:
The same boundary issue also applies to relative paths that resolve outside the project root, such as ../outside-secret.txt, if accepted by the caller.
Expected Behavior
PRD input and output paths should be resolved to canonical paths and rejected unless the final path remains inside projectRoot. Absolute paths outside the project root and relative traversal paths should not be accepted.
Actual Behavior
The out-of-root file is accepted as the PRD input and its content is read:
read_content=CTM-PRD-SECRET
The boundary check fails even though the file is outside projectRoot:
Activity