# CVE-2026-11393: Code injection via improper triple-quote escaping in AgentCore CLI Bedrock Agent import

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.60% (percentile 43, 2026-11-26)
- **CWE:** CWE-94
- **Aliases:** GHSA-m4x6-gwgp-4pm7
- **Published:** 2026-06-08T18:38:03.960Z
- **Modified:** 2026-07-29T16:15:30.310Z

## Who should check

- Projects that depend on npm package @aws/agentcore (\>= 0.4.0, \< 0.14.2)
- Anyone running AWS AgentCore CLI \>= 0.4.0, \<= 0.14.1; \>= 0.3.0-preview.7.0, \<= 1.0.0-preview.8

## Description

Improper neutralization of triple-quote characters during Python code generation in AgentCore CLI before v0.14.2 might allow an authenticated remote threat actor to execute arbitrary code on AWS AgentCore Runtime under the imported agent's IAM execution role and on the local environment of another user in the same AWS account, via a crafted collaborationInstruction stored on a Bedrock Agent collaborator and later processed by that other user during agent import.



To remediate this issue, users should upgrade to version 0.14.2.

## Affected and fixed versions

- npm `@aws/agentcore`: affected \>= 0.4.0, \< 0.14.2; fixed 0.14.2, 1.0.0-preview.9 (osv)
- AWS AgentCore CLI: \>= 0.4.0, \<= 0.14.1; \>= 0.3.0-preview.7.0, \<= 1.0.0-preview.8 (cvelist)

## Mitigation

- Upgrade @aws/agentcore to one of 0.14.2, 1.0.0-preview.9 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-11393. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-11393.md
Affected: @aws/agentcore >= 0.4.0, < 0.14.2
Fixed in: 0.14.2, 1.0.0-preview.9

Steps:
1. Search this machine and project for @aws/agentcore (npm), AWS AgentCore CLI: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-11393 being exploited?

There is no confirmed exploitation: CVE-2026-11393 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.60% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-11393?

High: CVSS 8.8 (v4.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-11393?

@aws/agentcore \>= 0.4.0, \< 0.14.2.

### Is there a fix for CVE-2026-11393?

Yes. Fixed in 0.14.2, 1.0.0-preview.9. Upgrade @aws/agentcore to one of 0.14.2, 1.0.0-preview.9 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-11393?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://aws.amazon.com/security/security-bulletins/2026-040-aws/>
- vendor: <https://github.com/aws/agentcore-cli/security/advisories/GHSA-m4x6-gwgp-4pm7>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-11393>
- patch: <https://github.com/aws/agentcore-cli/releases/tag/v0.14.2>
- patch: <https://www.npmjs.com/package/@aws/agentcore/v/0.14.2>
- patch: <https://www.npmjs.com/package/@aws/agentcore/v/1.0.0-preview.9>
- patch: <https://github.com/aws/agentcore-cli/pull/1329>
- patch: <https://github.com/aws/agentcore-cli/commit/ae1b932ec91bacdbb7a3521f9f1fc24479a3d504>
- other: <https://aws.amazon.com/security/security-bulletins/2026-040-aws>
- other: <https://github.com/aws/agentcore-cli>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-11393>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-m4x6-gwgp-4pm7> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-11393> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-11393>
