Skip to content

AAK-MCP-AWSAPIMCP-CVE-2026-115413-001: AWS API MCP Server 1.3.0 to 1.5.x: OAuth mode accepts tokens issued to other applications

Severity
HIGH
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py
Auto-fixable
No.
SARIF name
AwsApiMcpServerOAuthAudience

What it detects

The AWS API MCP Server (awslabs.aws-api-mcp-server) added OAuth authentication in 1.3.0 (AUTH_TYPE=oauth, which the README says is on by default in HTTP mode unless AUTH_TYPE=no-auth is set). Before 1.6.0 it did not check a token's audience, so a local user holding an access token that the same identity provider issued to another application could call the server and run AWS operations with the server's configured AWS credentials (CVE-2026-115413, CVSS 7.8, CWE-346; GHSA-4prq-p2x5-w9fh). 1.6.0 adds AUTH_AUDIENCE and AUTH_CLIENT_ID, matched against the token's aud and client_id or azp claims, and requires one of them in OAuth mode (awslabs/mcp#4865).

How to fix

Upgrade awslabs.aws-api-mcp-server to 1.6.0 or later and pin it, then set AUTH_AUDIENCE to the server's own audience, or AUTH_CLIENT_ID for a provider whose access tokens carry no aud claim, such as Amazon Cognito. Until then, run it over stdio, or keep its HTTP port to the one client that should reach it.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-AWSAPIMCP-CVE-2026-115413-001

Limitations

Reports awslabs.aws-api-mcp-server from 1.3.0 below 1.6.0 where a version is stated: a requirements*.txt entry at any depth, a pyproject.toml, Pipfile or lockfile entry at the project root, or a uvx launch in .mcp.json, mcp.json or claude_desktop_config.json, reporting a range that admits an affected version. latest was 1.6.0 on 2026-10-28 and states no version, so the README's own uvx awslabs.aws-api-mcp-server@latest is not reported. It reads the version, not the transport or AUTH_TYPE, so a server run over stdio, which has no OAuth mode, or with AUTH_TYPE=no-auth is reported too. The ECR image public.ecr.aws/awslabs-mcp/awslabs/aws-api-mcp-server, which the README runs at latest, is not read. A file over 2 MB, or a lockfile over 32 MiB, is not read. A declaration nested more than 64 levels deep in package.json, a TOML manifest or an MCP config (an MCP server more than 62) is still judged, and reported without a line; a lockfile entry keeps its line at any depth.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-AWSAPIMCP-CVE-2026-115413-001.md: the page then shows that text, with the registry reference appended under it.