An AI document reader could reach files outside its folder.
AWS disclosed a path traversal in awslabs.document-loader-mcp-server, the MCP server that lets AI assistants read PDF, Office and image files. In some setups its folder restriction was not enforced.

- CVE-2026-130901 affects awslabs.document-loader-mcp-server 1.0.10 up to, not including, 1.0.21.
- When DOCUMENT_BASE_DIR was unset and CI or test variables were present, the default folder restriction was skipped.
- That could let the assistant read supported files elsewhere on disk, and in 1.0.12 to 1.0.20 write PNG slide images elsewhere.
- Fixed in 1.0.21. AWS thanked Rishaank Gupta for coordinated disclosure.

What happened
AWS Security Bulletin 2026-195, published on 20 November 2026, describes CVE-2026-130901 in the Document Loader MCP Server, an open-source tool that lets AI assistants parse PDF, Office and image files on the local file system. When DOCUMENT_BASE_DIR was not set and variables such as CI, GITHUB_ACTIONS or PYTEST_CURRENT_TEST were present, the default base-directory restriction was not applied. AWS thanked Rishaank Gupta for collaborating through coordinated disclosure.
Who is affected
- Users of awslabs.document-loader-mcp-server 1.0.10 to 1.0.20
- AI agents that run inside CI pipelines or test environments
- Forks and derivative code based on the affected versions
Why it matters
AI agents are moving into build pipelines, where secrets, keys and source code sit on disk. A document tool that quietly loses its folder limit there can hand those files to the model, and from the model to anyone who can steer it with prompt injection.
What to do now
- Update awslabs.document-loader-mcp-server to 1.0.21.
- Set DOCUMENT_BASE_DIR to the folder that holds your documents. Never set it to /.
- Patch any forks or copies of the code too.
- Keep secrets out of folders that AI tools can read, especially in CI.
How HanulSec helps
- We map which files and folders each AI tool can really reach in every environment, including CI.
- We test folder limits with path tricks and hostile documents.
- We check that secrets in pipelines stay out of AI tools’ reach.
Tell us what you run and we will send a fixed-price proposal within one business day. Request a quote.