CVE-2026-11393 — Vulnerability in @aws/agentcore — CVE Details
AgentCore CLI Bedrock Agent Import Vulnerable to Code Injection via Improper Triple-Quote Escaping
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.60%). Schedule for your next planned update.
Does your project use an affected @aws/agentcore version?
Paste your package-lock.json to check it for CVE-2026-11393 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
The AgentCore CLI (@aws/agentcore) is a developer tool for managing agent infrastructure lifecycle on Amazon Bedrock AgentCore. An issue exists where, under certain circumstances, a crafted collaborationInstruction value stored in Bedrock Agent collaborator metadata can break out of a Python triple-quoted string in code generated by the agentcore add agent --type import command, resulting in arbitrary code execution when the generated file is loaded or deployed.
Impact
When a user runs agentcore add agent --type import to import a Bedrock supervisor agent that has multi-agent collaboration enabled, the CLI fetches collaborator metadata from the Bedrock API and interpolates the collaborationInstruction field directly into a triple-quoted Python string in the generated main.py file of the imported agent. Due to insufficient escaping, a collaborationInstruction value containing triple double-quote characters can terminate the string boundary and inject arbitrary Python statements into the generated source file.
An authenticated AWS user in the same account with the bedrock:AssociateAgentCollaborator IAM permission can associate a collaborator agent carrying a crafted collaborationInstruction with a supervisor agent. A developer who subsequently imports that supervisor agent using an affected CLI version will have the injected code written to their local main.py of the imported agent. The injected code executes in two contexts: on the developer's local machine when running agentcore dev, under the developer's local AWS credentials; and in the AWS AgentCore Runtime environment when the developer runs agentcore deploy followed by agentcore invoke, under the agent's IAM execution role.
Customers who have already imported a supervisor agent using an affected version and deployed it to AWS remain exposed on every agent invocation until they regenerate and redeploy the agent using a patched CLI version.
Impacted versions: @aws/agentcore >= 0.4.0 AND <= 0.14.1, preview >= 0.3.0-preview.7.0 AND <= 1.0.0-preview.8
Patches
This issue has been addressed in AgentCore CLI version 0.14.2 and preview version 1.0.0-preview.9. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.
Customers who have previously run agentcore add agent --type import on an affected version must also remove the affected agent from their project, re-run the import with the patched CLI to regenerate a clean main.py for the imported agent, and redeploy their agent to AWS to replace the previously deployed artifact. Upgrading the CLI alone does not remediate already-generated or already-deployed code.
Workarounds
If an immediate upgrade is not possible, customers can manually inspect the generated main.py of the imported agent for any collaboratorInstruction values that contain triple double-quote character sequences and replace each occurrence with escaped equivalents before running agentcore dev or agentcore deploy.
References
If you have any questions or comments about this advisory, AWS asks that you contact AWS Security via the vulnerability reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.
Advisory Timeline
- First published July 29, 2026 (120 days ago).
- Last revised July 29, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install @aws/agentcore@0.14.2
npm install @aws/agentcore@1.0.0-preview.9
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| @aws/agentcore npm · Affected: All versions | Range-based data available |
| @aws/agentcore npm · Affected: All versions | 0.14.2 |
| @aws/agentcore npm · Affected: All versions | 1.0.0-preview.9 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
References
- https://github.com/aws/agentcore-cli/security/advisories/GHSA-m4x6-gwgp-4pm7WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-11393ADVISORY
- https://github.com/aws/agentcore-cli/pull/1329WEB
- https://github.com/aws/agentcore-cli/commit/ae1b932ec91bacdbb7a3521f9f1fc24479a3d504WEB
- https://aws.amazon.com/security/security-bulletins/2026-040-awsWEB
- https://github.com/aws/agentcore-cliPACKAGE
- https://github.com/aws/agentcore-cli/releases/tag/v0.14.2WEB
- https://www.npmjs.com/package/@aws/agentcore/v/0.14.2WEB
- https://www.npmjs.com/package/@aws/agentcore/v/1.0.0-preview.9WEB
Frequently Asked Questions
- What is CVE-2026-11393?
- AgentCore CLI Bedrock Agent Import Vulnerable to Code Injection via Improper Triple-Quote Escaping. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.0/10).
- How do I check if my project is affected by CVE-2026-11393?
- CVE-2026-11393 affects @aws/agentcore. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-11393 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 43% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2024-28056CRITICAL
AWS Amplify CLI has incorrect trust policy management
- CVE-2025-4318CRITICAL
AWS Amplify Studio UI Component Properties Has an Input Validation Issue
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-83817HIGH
CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution