---
title: AWS Document Loader MCP Server (CVE-2026-130901): when run with CI or test variables set and no DOCUMENT_BASE_DIR, crafted documents could make it read files outside its folder; fixed in 1.0.21 | ctxsec
url: https://ctxsec.com/items/aws-document-loader-mcp-server-cve-2026-130901-base-dir-not-enforced-in-ci-read-files-outside-write-png-fixed-1-0-21
description: "AWS says versions 1.0.10 through 1.0.20 of the open-source MCP server, which lets AI assistants parse PDF, Office and image files, skip the base-directory restriction when DOCUMENT_BASE_DIR is empty and CI or test environment variables are present. Someone who can influence the documents an MCP client processes could read supported files elsewhere on disk, and in 1.0.12-1.0.20 write PNG slide images to other directories. Fixed in 1.0.21; the workaround is to set DOCUMENT_BASE_DIR to your documents folder (not /)."
status: "official (AWS Security Bulletin 2026-195-AWS, Nov 20, 2026)"
published: 2026-11-20
---

> AWS says versions 1.0.10 through 1.0.20 of the open-source MCP server, which lets AI assistants parse PDF, Office and image files, skip the base-directory restriction when DOCUMENT_BASE_DIR is empty and CI or test environment variables are present. Someone who can influence the documents an MCP client processes could read supported files elsewhere on disk, and in 1.0.12-1.0.20 write PNG slide images to other directories. Fixed in 1.0.21; the workaround is to set DOCUMENT_BASE_DIR to your documents folder (not /).

[← Context & Harness Attacks](/context) · [markdown](/items/aws-document-loader-mcp-server-cve-2026-130901-base-dir-not-enforced-in-ci-read-files-outside-write-png-fixed-1-0-21.md)

official (AWS Security Bulletin 2026-195-AWS, Nov 20, 2026)

2026-11-20 · published here

2026-11-21 7:49 AM ET

### AWS Document Loader MCP Server (CVE-2026-130901): when run with CI or test variables set and no DOCUMENT_BASE_DIR, crafted documents could make it read files outside its folder; fixed in 1.0.21

- **Why it matters:** a test-mode shortcut shipped in production code; agent runners in CI (GitHub Actions sets CI) are exactly where it would trigger.
- Pin and upgrade MCP servers like any dependency, and set path restrictions explicitly rather than relying on defaults.

Sources: [AWS Security Bulletin 2026-195-AWS: CVE-2026-130901 in Document Loader MCP Server (Nov 20, 2026)](https://aws.amazon.com/security/security-bulletins/2026-195-aws/)
