Skip to content

Prevent directory traversal in get_excel_path and update dependencies#113

Open
RinZ27 wants to merge 1 commit into
haris-musa:mainfrom
RinZ27:fix/path-traversal-and-deps
Open

Prevent directory traversal in get_excel_path and update dependencies#113
RinZ27 wants to merge 1 commit into
haris-musa:mainfrom
RinZ27:fix/path-traversal-and-deps

Conversation

@RinZ27

@RinZ27 RinZ27 commented Jan 20, 2026

Copy link
Copy Markdown

The file path resolution logic was blindly joining paths, which allowed access to files outside the intended directory. I've added a canonical path check using os.path.abspath to ensure everything stays inside EXCEL_FILES_PATH. Also bumped dependencies to pull in critical security fixes, specifically addressing CVE-2025-66416 in mcp and several GHSA advisories in fastmcp.

@RinZ27 RinZ27 changed the title security: fix path traversal and upgrade vulnerable dependencies Prevent directory traversal in get_excel_path and update dependencies Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant