CVE-2026-4270: Awslabs.aws api mcp server AWS API MCP File Access Vulnerability

MODERATE
Advisory Identifier: GHSA-2cpp-j2fc-qhp7
CVSS 5.5
CWE-424
Published
Advisory Summary

CVE-2026-4270 is a MODERATE (CVSS 5.5) aws api mcp file access vulnerability (CWE-424: Improper Protection of Alternate Path) affecting Awslabs.aws api mcp server libraries in the PyPI ecosystem. The issue involves aws api mcp file access restriction bypass. Remediation is available by upgrading affected packages to version 1.3.9.

CVE-2026-4270 at a Glance

CVE Identifier CVE-2026-4270
GHSA Identifier GHSA-2cpp-j2fc-qhp7
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-424: Improper Protection of Alternate Path
Affected Product Awslabs.aws api mcp server
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-4270

To remediate this vulnerability, upgrade all affected Awslabs.aws api mcp server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

awslabs.aws-api-mcp-server fixed: 1.3.9
pip install awslabs.aws-api-mcp-server>=1.3.9
awslabs-aws-api-mcp-server fixed: 1.3.9
pip install awslabs-aws-api-mcp-server>=1.3.9
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show awslabs.aws-api-mcp-server

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-4270, inspect your installed packages using pip:

pip show awslabs.aws-api-mcp-server

Analyze the terminal output to locate any version of Awslabs.aws api mcp server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.9), your application is affected.

Note: The pip show awslabs.aws-api-mcp-server command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-424: Improper Protection of Alternate Path, where the product does not sufficiently protect all possible paths that a user can take to access restricted functionality or resources. In Awslabs.aws api mcp server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Description The AWS API MCP Server is an open source Model Context Protocol (MCP) server that enables AI assistants to interact with AWS services and resources through AWS CLI commands. It provides programmatic access to manage your AWS infrastructure while maintaining proper security controls. This server acts as a bridge between AI assistants and AWS services, allowing you to create, update, and manage AWS resources across all available services. The server includes a configurable file access feature that controls how AWS CLI commands interact with the local file system. By default, file operations are restricted to a designated working directory (workdir), but this can be configured to allow unrestricted file system access (unrestricted) or to block all local file path arguments entirely (no-access). **Description:** Improper Protection of Alternate Path exists in the no-access and workdir feature of the AWS API MCP Server versions >= 0.2.14 and < 1.3.9 on all platforms may allow the bypass of intended file access restriction and expose arbitrary local file contents in the MCP client application context. To remediate this issue, users should upgrade to version 1.3.9.

CVE-2026-4270 Affected Awslabs.aws api mcp server Versions

2 component(s)
Fixed Versions:
1.3.9
Product / Package Ecosystem Affected Versions Fixed Version
awslabs.aws-api-mcp-server
PyPI
≥ 0.2.14
< 1.3.9
1.3.9
awslabs-aws-api-mcp-server
PyPI
≥ 0.2.14
< 1.3.9
1.3.9

References

Frequently Asked Questions

What is CVE-2026-4270?
CVE-2026-4270 is a security vulnerability in Awslabs.aws api mcp server involving AWS API MCP File Access Restriction Bypass under CWE-424: Improper Protection of Alternate Path.
Which Awslabs.aws api mcp server versions are affected?
Affected versions include releases prior to 1.3.9 across affected packages: awslabs.aws-api-mcp-server, awslabs-aws-api-mcp-server.
What version fixes CVE-2026-4270?
Upgrading to 1.3.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is awslabs.aws-api-mcp-server affected?
Yes, awslabs.aws-api-mcp-server is affected in releases prior to 1.3.9. Upgrade your dependency to 1.3.9 or later.
Is awslabs-aws-api-mcp-server affected?
Yes, awslabs-aws-api-mcp-server is affected in releases prior to 1.3.9. Upgrade your dependency to 1.3.9 or later.
What is the CVSS score of CVE-2026-4270?
CVE-2026-4270 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-4270?
CVE-2026-4270 is classified under CWE-424: Improper Protection of Alternate Path (The product does not sufficiently protect all possible paths that a user can take to access restricted functionality or resources.).
How can I check PyPI dependencies for CVE-2026-4270?
Run the dependency tree command: 'pip show awslabs.aws-api-mcp-server'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2cpp-j2fc-qhp7",
  "modified" : "2026-06-08T23:15:15Z",
  "published" : "2026-03-17T20:33:15Z",
  "aliases" : [ "CVE-2026-4270" ],
  "summary" : "AWS API MCP File Access Restriction Bypass",
  "details" : "### Description\n\nThe AWS API MCP Server is an open source Model Context Protocol (MCP) server that enables AI assistants to interact with AWS services and resources through AWS CLI commands. It provides programmatic access to manage your AWS infrastructure while maintaining proper security controls.\n\nThis server acts as a bridge between AI assistants and AWS services, allowing you to create, update, and manage AWS resources across all available services. The server includes a configurable file access feature that controls how AWS CLI commands interact with the local file system. By default, file operations are restricted to a designated working directory (workdir), but this can be configured to allow unrestricted file system access (unrestricted) or to block all local file path arguments entirely (no-access).\n\n**Description:** Improper Protection of Alternate Path exists in the no-access and workdir feature of the AWS API MCP Server versions >= 0.2.14 and < 1.3.9 on all platforms may allow the bypass of intended file access restriction and expose arbitrary local file contents in the MCP client application context.\n\nTo remediate this issue, users should upgrade to version 1.3.9.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "awslabs.aws-api-mcp-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.2.14"
      }, {
        "fixed" : "1.3.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "awslabs-aws-api-mcp-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.2.14"
      }, {
        "fixed" : "1.3.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/awslabs/mcp/security/advisories/GHSA-2cpp-j2fc-qhp7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-4270"
  }, {
    "type" : "WEB",
    "url" : "https://aws.amazon.com/security/security-bulletins/2026-007-AWS"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/awslabs/mcp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/awslabs-aws-api-mcp-server/PYSEC-2026-162.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/awslabs.aws-api-mcp-server/1.3.9"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-424" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-17T20:33:15Z",
    "nvd_published_at" : "2026-03-16T17:16:32Z"
  }
}