Rightshold™ Sign up
Rightshold is live — the trust layer for AI agents.Launched November 23, 2026.Evidence Delivery$99 / 30 days · Offers are open — review the exact terms and the payment options shown on the service page before accepting.No token, everany ‘Rightshold token’ is not ours

Answers · MCP security

We run the AWS Labs Document Loader MCP Server so an assistant can read PDFs, Office files and images, and it runs inside our CI pipeline as well as on laptops. An advisory published November 20, 2026 (CVE-2026-130901) says the folder limit could switch itself off. When did that happen, which version fixes it, and what should we set?

Last updated

TL;DR: Yes, in versions 1.0.10 through 1.0.20. The server limits read_document, read_image and extract_slides_as_images to files inside DOCUMENT_BASE_DIR, or the current working directory when that variable isn't set. AWS's advisory (GHSA-9wg4-8hq4-rfwv, CVE-2026-130901, medium, CVSS 3.1 5.3, CWE-22 path traversal, published November 20, 2026) says that when DOCUMENT_BASE_DIR was unset or empty and any of CI, GITHUB_ACTIONS or PYTEST_CURRENT_TEST was present in the environment, even set to an empty or false value, the server used the filesystem root as its base directory. Since CI platforms set those variables on every job, a pipeline run lost the limit without any warning. Anyone who could influence the documents an agent processed could then make it read supported files anywhere on the machine, and in 1.0.12 through 1.0.20 write PNG slide images outside the folder. The fix (pull request 4561, merged August 31, 2026) removed the environment check, and 1.0.21 reached PyPI on September 1, 2026, so the advisory came about 11 weeks after the fix. Upgrade (PyPI listed 1.0.27 as newest on November 23, 2026) and set DOCUMENT_BASE_DIR to your documents folder, never to /.

What should I check, step by step?

1. Check the installed version of awslabs.document-loader-mcp-server. Versions 1.0.10 through 1.0.20 are affected and 1.0.21 is the first fixed release. Configs that run awslabs.document-loader-mcp-server@latest through uvx, as the README's install buttons do, should pick up newer releases when the server restarts; pinned versions and built container images don't, so check the version that actually runs.

  1. Set DOCUMENT_BASE_DIR explicitly in every place the server runs, including CI jobs and containers, to the one folder that holds the documents the agent should see. The advisory says deployments that set it to a directory other than / were not affected.
  2. Never set DOCUMENT_BASE_DIR to /. The advisory names that value as the one that removes the restriction, and older project comments suggested it for testing.
  3. List where the server ran with CI, GITHUB_ACTIONS or PYTEST_CURRENT_TEST present and no DOCUMENT_BASE_DIR. On 1.0.10 through 1.0.20 those runs had no folder limit, so treat any file the job user could read as reachable.
  4. If such a run processed documents from outside sources (uploaded files, pull request contents, fetched attachments), review what the agent read and look for unexpected PNG files outside the intended output folder.
  5. In containers, mount only the documents folder, set DOCUMENT_BASE_DIR to that mount and add :ro when the agent only reads, as the project's README suggests. Leave it writable only where extract_slides_as_images needs to write.
  6. When you review any MCP server that limits file access, search its code for checks of environment variables such as CI or PYTEST_CURRENT_TEST near the path rules. A test shortcut in the file sandbox is the pattern behind this advisory.

What is CVE-2026-130901 in the Document Loader MCP Server?

AWS published GHSA-9wg4-8hq4-rfwv (CVE-2026-130901) in the awslabs/mcp repository on November 20, 2026 for the pip package awslabs.document-loader-mcp-server, versions 1.0.10 up to but not including 1.0.21, patched in 1.0.21. It is rated medium (CVSS 3.1 5.3, CWE-22). The server lets an assistant parse PDF, Word, Excel, PowerPoint and image files from the local filesystem with three tools: read_document, read_image and extract_slides_as_images.

How does Document Loader MCP Server 1.0.21 fix CVE-2026-130901?

The fix is pull request 4561 in awslabs/mcp, "remove CI/test env bypass of DOCUMENT_BASE_DIR sandbox", merged August 31, 2026. PyPI shows 1.0.21 uploaded September 1, 2026, and the advisory followed on November 20, so anyone who upgraded since September is already covered.

Why is a CI or test shortcut in an MCP server's file sandbox risky?

A rule like "skip the folder check when tests are running" makes the sandbox depend on environment variables that nobody sets for security reasons. CI runners, build containers and scheduled jobs set CI for their own purposes, and those are often the unattended places where an agent processes files nobody reviewed first.

How do I ask Rightshold about this (free, no key)?

Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “We upgraded the Document Loader MCP Server past the CVE-2026-130901 fix, set DOCUMENT_BASE_DIR in our CI jobs and containers, and reviewed what the older CI runs read. Record that change so we have a dated entry outside our own logs.”

One-click setup

{
  "tool": "record_action",
  "arguments": {
    "action_type": "security.config_change",
    "outcome": "success",
    "occurred_at": "2026-11-23T14:30:00Z",
    "client_event_id": "document-loader-mcp:upgrade-2026-11-23",
    "summary": "awslabs.document-loader-mcp-server upgraded to 1.0.27 (CVE-2026-130901 / GHSA-9wg4-8hq4-rfwv fixed in 1.0.21); DOCUMENT_BASE_DIR set to the documents folder in CI and container configs; earlier CI runs without it reviewed"
  }
}

Rightshold isn't affiliated with AWS or the awslabs/mcp project. It doesn't scan MCP server code, inspect your CI environment or watch file access, and a recorded entry isn't a finding that a setup is safe. Advisory details are as published by AWS in the awslabs/mcp repository (GHSA-9wg4-8hq4-rfwv), the fix as described in pull request 4561 and the project's changelog, settings as described in the project's README, and release dates as listed on PyPI, all read November 23, 2026; advisories get updated, so confirm fixed versions on the linked pages.

What are the sources?

Related

Not legal advice. JSON · Markdown · All answers

Get a free API key in one call

No card and no email needed. 100 free credits; the license and policy checks stay free without a key.

curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_...   # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
  -H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'