Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Amplify Studio (PR:L)
-
DeliveryCraft component/theme schema with malicious non-identifier keys
-
ExploitDeveloper or CI runs codegen-ui-react
-
ExecutionInjected code emitted into generated React source
-
PersistBuild/SSR/browser executes payload
-
ImpactArbitrary code execution across dev, CI/CD, and end-user environments
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated Amplify Studio user (PR:L) who can supply crafted component-definition or theme-schema values - specifically theme keys that are non-identifiers, which prior to 2.20.6 were emitted unescaped into generated React source. A victim action is also required (UI:R): the crafted schema must be processed by @aws-amplify/codegen-ui-react and the resulting code must be built, run, or server-rendered, at which point it executes in browsers, developer machines, CI/CD, or SSR. Limiting factors: the attacker needs legitimate write/import access to the Studio project's schemas (not unauthenticated), and no code runs until a generation-plus-build/render step occurs, so merely viewing the design is insufficient. This is a bypass of the incomplete CVE-2025-4318 validation, so environments patched only for that earlier CVE remain exposed. |
| Impact | The CVSS 3.1 base score is 9.0 (vector AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H): network-reachable, low complexity, but requiring low-privilege authentication (PR:L, an Amplify Studio user able to define components/themes) and user interaction (UI:R, someone must generate/build/render the crafted schema). The scope-changed flag (S:C) with full C/I/A impact reflects that code crosses a trust boundary - a schema author's input executes in a victim developer's or end-user's environment. Real-world risk is tempered by the authentication and interaction requirements: an attacker needs legitimate write access to the Studio project (or the ability to get a crafted schema imported), and a build/render must occur, so this favors insider or supply-chain-style abuse over opportunistic mass exploitation. No EPSS score, KEV listing, SSVC decision, or public POC was provided, so exploitation probability cannot be quantified from the input; the absence of KEV/POC suggests no confirmed in-the-wild activity, but the high impact and the fact that it is an incomplete-fix bypass of an earlier CVE warrant prompt patching. One tension worth flagging: the description emphasizes multi-environment code execution, but exploitation still hinges on privileged schema authorship - this is a high-impact, moderate-accessibility issue rather than an unauthenticated internet-facing RCE. |
| Exploit ScenarioDerived | An attacker with a low-privileged Amplify Studio account (or who can get a crafted schema imported into a shared project) defines a component or theme containing malicious theme keys or values engineered to break out of the generated literal context. When a developer or CI/CD pipeline runs the React code generator and then builds or server-renders the output, the injected code executes on the developer's machine, in the build environment, or in end-user browsers. No public POC was provided, but the v2.20.6 fix commit points at the exact non-identifier-theme-key vector. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 30, 2026
Code injection in Amazon's @aws-amplify/codegen-ui-react before 2.20.6 lets a remote authenticated Amplify Studio user embed attacker-controlled code into generated React components by supplying crafted component or theme schema values (CWE-94). The malicious code executes wherever the generated artifacts run - end-user browsers, developer machines, CI/CD pipelines, and server-side rendering contexts - giving broad code-execution reach. This is a bypass of the input validation added for CVE-2025-4318, which proved insufficient in coverage and effectiveness; no public exploit has been identified at time of analysis, though a vendor patch (v2.20.6) is available.
RemediationAI
Upgrade to @aws-amplify/codegen-ui-react version 2.20.6, the vendor-released patch that emits non-identifier theme keys as string literals to prevent injection (release: https://github.com/aws-amplify/amplify-codegen-ui/releases/tag/v2.20.6; advisory: https://aws.amazon.com/security/security-bulletins/2026-066-aws/ and https://github.com/aws-amplify/amplify-codegen-ui/security/advisories/GHSA-74xx-rjgf-m69j). Because the prior CVE-2025-4318 fix was incomplete, do not rely on any pre-2.20.6 build. Until the upgrade is deployed, restrict who can author or import Studio component and theme schemas to trusted developers, review generated code diffs before building or deploying (treat unexpected identifiers or executable-looking theme keys as suspect), and avoid running codegen or builds on untrusted schema input in privileged CI/CD or SSR contexts; the trade-off is added review friction and slower design-to-code turnaround, but it directly limits the code-execution path pending patching.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is @aws-amplify/codegen-ui-react, the React code generator that turns Amplify Studio visual designs (component definitions and theme schemas) into TypeScript/JSX source code. The root cause class is CWE-94 (Improper Control of Generation of Code), meaning untrusted schema field values are placed into emitted source without adequate sanitization or escaping, so a value can break out of its intended literal context and become executable code in the generated file. The v2.20.6 fix specifically emits non-identifier theme keys as string literals (commit 062c3a5, PR #1202), indicating that theme keys/values previously written as raw identifiers or object keys could be crafted to inject code. Because the generator output is consumed downstream - bundled into browser apps, run during builds, and executed under SSR - the injected code inherits the privileges of each of those execution environments. CPE cpe:2.3:a:aws:amplify_codegen_ui:*:*:*:*:*:*:*:* covers the affected package.
Know when AWS gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
Requires an authenticated Studio schema author (PR:L) and a victim build/render step (UI:R); injected code crosses into other execution environments (S:C) with full code-execution impact.
Primary rating from Vendor (AMZN).
CVSS VectorVendor: AMZN
Lifecycle Timeline
3DescriptionCVE.org
Improper control of code generation in Amazon @aws-amplify/codegen-ui-react before 2.20.6 might allow a remote authenticated user to execute arbitrary code in end-user browsers, developer machines, CI/CD environments, and server-side rendering contexts via crafted Studio component or theme schema values due to insufficient coverage and effectiveness of the input validation introduced for CVE-2025-4318.
To remediate this issue, users should upgrade to version 2.20.6
Executive ViewAI
Amazon's @aws-amplify/codegen-ui-react before version 2.20.6 contains a critical code injection vulnerability allowing authenticated Amplify Studio users to inject malicious code that executes across end-user browsers, developer machines, CI/CD pipelines, and server-side rendering environments. This creates significant supply chain and application integrity risk for organizations using this library to generate React components.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Loom for AWS deployments running a version before 1.6.1 with no identity provider configured expose an unauthenticated s
Unauthorized data access in Budibase low-code platform before 3.30.4 allows unauthenticated users to manipulate internal
Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar
Multiple vulnerabilities in ASTPP 4.0.1 including XSS and command injection in SIP device configuration and plugin manag
Broken access control in the VitaFit cloud API before the 2026-10-30 fix lets any authenticated account holder call POST
Remote code execution in Amazon awslabs postgres-mcp-server before 1.1.7 lets remote actors run arbitrary OS commands on
Remote code execution in AWS AgentCore CLI before v0.14.2 allows authenticated attackers to inject Python code via craft
Denial of service in the aws-smithy-json Rust runtime crate (versions before 0.62.7) lets remote unauthenticated attacke
Denial of service in Amazon's aws-smithy-http-server Rust crate (versions prior to 0.66.5) lets remote unauthenticated a
Argument injection in the AWS Bedrock AgentCore Python SDK before 1.18.1 lets a remote authenticated user run arbitrary
Arbitrary file read in amazon-mq rabbitmq-aws before 0.2.1 allows authenticated remote users to read any file accessible
WAF managed-rule body inspection on AWS Application Load Balancer (ALB) can be bypassed by remote actors who fragment an
EUVD-2026-51268
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB