The Daily Byte
Breaking
Welcome to The Daily Byte — real stories from across Pakistan.
Monday, 23 November 2026 · Pakistan

The Daily Byte

Stories from Pakistan that deserve to be heard

CVE-2026-130901: AWS Document Loader MCP Flaw Leaks Files

By The Daily Byte ·22 Nov 2026 ·3 min read
Rows of servers with blue lights in a data centre (representative image)

Amazon Web Services has fixed a flaw in its open-source Document Loader MCP Server that could let an attacker read files outside the folder the server is meant to stay in. The issue, tracked as CVE-2026-130901, was published in AWS security bulletin 2026-195-AWS on Thursday 20 November. It affects versions 1.0.10 through 1.0.20, and the fix is version 1.0.21.

The Document Loader MCP Server is a Model Context Protocol server that lets AI assistants parse and pull content from PDF, Office and image files stored on the local file system. MCP servers sit between an AI assistant and the tools and data it can reach, so a flaw in one can hand the assistant, and anyone who can influence what it processes, access it was never meant to have.

When the folder limit stops working

According to AWS, the server is supposed to restrict file access to a base directory set by the DOCUMENT_BASE_DIR setting. But when that setting is not set or is empty, and the server is running with continuous-integration or test environment variables present, the default restriction is not enforced. The variables named in the bulletin are CI, GITHUB_ACTIONS and PYTEST_CURRENT_TEST.

In that state, someone who can influence the documents an MCP client processes could get the server to read supported files outside the intended directory. In versions 1.0.12 through 1.0.20, the same weakness could also let them write PNG slide images to other directories. Versions before 1.0.10 did not restrict file access to a base directory at all, according to the CVE record.

The flaw is rated medium, with a CVSS 3.1 score of 5.3. It needs a particular setup, the missing setting plus the test environment variables, and an attacker who can steer the documents being processed, so it does not bite every installation. But MCP servers are often wired into developer workflows and test pipelines, which is exactly where those environment variables are present.

What to do

AWS says to upgrade to version 1.0.21 or later, and to make sure any forked or copied code gets the same fix. If an upgrade cannot be done at once, set DOCUMENT_BASE_DIR to the folder that holds the documents, and do not set it to a single slash, which removes the restriction entirely.

AWS thanked researcher Rishaank Gupta for reporting the issue through its coordinated disclosure process. No exploitation in the wild has been reported for this flaw. For teams running the server, the check is quick: confirm the version, confirm the setting, and upgrade where needed.