Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with component-authoring access
-
DeliveryInject JS into component property expression
-
ExploitSave/commit malicious component definition
-
Executioncodegen-ui-react evaluates expression during build
-
PersistExecute arbitrary code in build environment
-
ImpactCompromise generated app and pipeline
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated user who holds permission to create or modify Amplify Studio UI components (PR:L), and requires that the malicious binding/property expression subsequently be processed by the amplify-codegen-ui code-generation, rendering, or build pipeline - i.e., someone or some CI job must run codegen/build against the tampered component (the AT:P 'attack requirement' and the absence of a victim click, UI:N). Limiting factors: it is not exploitable by anonymous or unauthenticated attackers, the account must have component-authoring privileges, and only versions of aws-amplify/amplify-codegen-ui before 2.20.3 are affected. There is no reliance on a special non-default setting beyond simply using Amplify Studio's component codegen feature. |
| Impact | The signals are mixed but lean toward a genuine high-severity issue for organizations that use Amplify Studio, tempered by the access precondition. The CVSS 4.0 base score is 9.0 with vector AV:N/AC:L/AT:P/PR:L/UI:N and full High impact including subsequent-system impact (SC:H/SI:H/SA:H), reflecting that exploitation escapes the component into the build/host environment. However, PR:L means the attacker must already be an authenticated user with rights to create or modify components, and AT:P indicates a specific attack requirement - this is not an anonymous internet-facing RCE. EPSS is low (0.24%, 46th percentile) and the CVE is NOT in CISA KEV, indicating no evidence of widespread active exploitation; this is consistent with a bug that requires privileged, insider-or-compromised-account access rather than mass scanning. A public technical write-up (SecureLayer7) exists, raising the practical exploitability, so treat this as a real priority for teams running vulnerable amplify-codegen-ui versions - particularly in shared or multi-tenant Amplify projects - while recognizing the low likelihood of opportunistic mass exploitation. |
| Exploit ScenarioDerived | An authenticated user with Amplify Studio component-authoring rights (or an attacker who has taken over such an account) creates or edits a UI component and embeds malicious JavaScript inside a property/binding expression. When another developer or the CI pipeline runs component code generation and builds the app, the injected expression is evaluated and the attacker's code executes within the build environment. A public technical write-up (SecureLayer7) describes the mechanics, so a working exploit path is documented. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Jul 29, 2026
Arbitrary JavaScript code execution in AWS Amplify Studio's amplify-codegen-ui package (fixed in v2.20.3) allows an authenticated user with permission to create or modify UI components to inject malicious code via unvalidated component property/binding expressions, which is then evaluated during the React component code-generation, rendering, and build process. Because the injected code runs inside the developer's build pipeline, an attacker can compromise the build environment and any generated application. This corresponds to a CWE-95 eval-injection flaw; publicly available exploit code exists (a SecureLayer7 technical write-up), but there is no public exploit identified as weaponized and it is not listed in CISA KEV, with a low EPSS score of 0.24%.
Earlier versions of this analysis (1)
The AWS Amplify Studio UI component property expressions in the aws-amplify/amplify-codegen-ui package lack input validation. Rated critical severity (CVSS 9.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.
RemediationAI
Vendor-released patch: v2.20.3 - upgrade the aws-amplify/amplify-codegen-ui dependency (and regenerate components) to 2.20.3 or later, which adds sanitization to binding expressions (commit ca98c38, PR #1174); consult the AWS bulletin AWS-2025-010 (https://aws.amazon.com/security/security-bulletins/AWS-2025-010/) and advisory GHSA-hf3j-86p7-mfw8 (https://github.com/aws-amplify/amplify-codegen-ui/security/advisories/GHSA-hf3j-86p7-mfw8). If immediate upgrade is not possible, reduce exposure by tightly restricting who can create or modify Amplify Studio UI components - limit component authoring/IAM permissions to a small set of trusted developers, since the vulnerability requires that privilege - and review existing component property/binding expressions for suspicious code before running codegen or builds; the trade-off is reduced developer self-service and manual review overhead. Running codegen and build steps in isolated, least-privilege CI containers limits blast radius if a malicious expression executes, but does not close the vulnerability itself.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
AWS Amplify Studio is a visual development environment that lets users design UI components and then uses the aws-amplify/amplify-codegen-ui package (specifically the codegen-ui-react module) to transform those component definitions into React/JSX source code. Component 'property expressions' (binding expressions attached to UI element properties) were passed into the code-generation pipeline without input validation or sanitization. Since these expressions are ultimately emitted into generated JavaScript and evaluated during rendering and build, an attacker-controlled expression is treated as executable code rather than inert data - the classic CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code, i.e., 'Eval Injection') pattern. The v2.20.3 release confirms the root cause by adding sanitization to binding expressions (PR #1174, commit ca98c38).
Know when the next one hits your stack
- 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:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Network-reachable but requires authenticated component-author privileges (PR:L) and a build/codegen step to trigger (AC:H); code escapes the component into the build host (S:C) with full C/I/A impact.
Primary rating from Vendor (ff89ba41-3aa1-4d27-914a-91399e9639e5).
CVSS VectorVendor: ff89ba41-3aa1-4d27-914a-91399e9639e5
Lifecycle Timeline
4DescriptionCVE.org
The AWS Amplify Studio UI component property expressions in the aws-amplify/amplify-codegen-ui package lack input validation. This could potentially allow an authenticated user who has access to create or modify components to run arbitrary JavaScript code during the component rendering and build process.
Executive ViewAI
AWS Amplify Studio's amplify-codegen-ui package contains a critical code injection vulnerability (publicly available exploit code exists) that allows authenticated developers to execute arbitrary JavaScript during component code generation and build processes. Successful exploitation could compromise build environments and inject malicious code into production applications, creating severe supply chain risk for organizations using Amplify Studio.
Apply vendor patch: upgrade to amplify-codegen-ui v2.20.3 or newer. Pending patch deployment, restrict UI component modification permissions to verified developers and implement mandatory code review for all component changes.
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.
EUVD-2025-13500
GHSA-hf3j-86p7-mfw8
NVD
CVE.org
EPSS
VulDB
Exploit-DB