CVE-2026-130901: AWS Labs Document Loader MCP Server skipped its base-directory restriction when CI or test environment variables were set, letting crafted documents read files outside it and write PNG slides elsewhere (fixed 1.0.21)
awslabs.document-loader-mcp-server is AWS's open-source MCP server that lets AI assistants parse PDF, Office and image files on the local filesystem. In 1.0.10 through 1.0.20, when DOCUMENT_BASE_DIR was unset or empty and the CI, GITHUB_ACTIONS or PYTEST_CURRENT_TEST environment variable was present, the default base-directory restriction was not enforced. Someone who can influence the documents an MCP client processes could read supported files outside the intended directory and, in 1.0.12 through 1.0.20, write PNG slide images to other directories. Versions before 1.0.10 don't restrict file access to a base directory at all. Fixed in 1.0.21.
What it is
The exposure is mainly agents running the server in CI pipelines (GitHub Actions sets GITHUB_ACTIONS and CI) or under pytest.
AWS published security bulletin 2026-195-AWS on 20 November 2026 (10:30 AM PST); NVD published the CVE the same day. The fixed 1.0.21 package was uploaded to PyPI on 1 September 2026.
Credited to Rishaank Gupta.
How to check
- pip show awslabs.document-loader-mcp-server (or check the uvx/MCP client config for a pinned version).
- Check whether the server runs in CI or test environments, and whether DOCUMENT_BASE_DIR is set.
How to fix
- Upgrade to awslabs.document-loader-mcp-server 1.0.21 or later.
- If you can't upgrade right away, set DOCUMENT_BASE_DIR to the directory that holds your documents (never /, which removes the restriction).
- Upgrade anything older than 1.0.10 too: those versions have no base-directory restriction.
pip show awslabs.document-loader-mcp-server 2>/dev/null | grep -i '^version'
# set an explicit base dir in the MCP server env
export DOCUMENT_BASE_DIR="$HOME/documents" Sources
- criticalMalicious npm package @guicai777/mcp-doctor posed as an MCP diagnostic tool and dropped a hidden Windows executable, with a README telling users to run mshta (MAL-2026-20295)
- criticalCVE-2026-77359: Jupyter MCP Server's /api/connect and /api/stop routes skipped the token and Origin checks, so a website or network caller could repoint it to an attacker's Jupyter backend (fixed 1.0.3)
- criticalMalicious npm packages posing as AI SDKs and MCP servers: character-ai-sdk, char-ai-sdk, @mibbp/agent-observer, mrnima-openai-chatgpt-bot and @fdcasj_dfew/md-doc-mcp
- criticalCVE-2026-76807: Doist's official Todoist MCP HTTP server let any website use DNS rebinding to read, create and delete your Todoist data (fixed 10.3.3)