Skip to main content

AWS Amplify CVE-2025-4318

| EUVDEUVD-2025-13500 CRITICAL
Eval Injection (CWE-95)
2025-05-05 ff89ba41-3aa1-4d27-914a-91399e9639e5 GHSA-hf3j-86p7-mfw8
9.0
CVSS 4.0 · Vendor: ff89ba41-3aa1-4d27-914a-91399e9639e5
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with component-authoring access
  2. Delivery
    Inject JS into component property expression
  3. Exploit
    Save/commit malicious component definition
  4. Execution
    codegen-ui-react evaluates expression during build
  5. Persist
    Execute arbitrary code in build environment
  6. Impact
    Compromise 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Mar 28, 2026 - 18:40 CVSS 9.5

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

Amplify Studio 0.1.0 <2.20.3

Affected Packages

npm @aws-amplify/codegen-ui-react fix: 2.20.3
euvd amplify_studio fix: 2.20.3

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

Vendor (ff89ba41-3aa1-4d27-914a-91399e9639e5) PRIMARY 9.0 CRITICAL
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
vuln.today AI 8.5 HIGH

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (ff89ba41-3aa1-4d27-914a-91399e9639e5).

CVSS VectorVendor: ff89ba41-3aa1-4d27-914a-91399e9639e5

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

4
Patch available
Jul 30, 2026 - 22:20 EUVD
Analysis Updated
Jul 29, 2026 - 16:28 vuln.today
v2 - CVSS changed
CVSS changed
Jul 29, 2026 - 16:22 NVD
9.5 (CRITICAL) 9.0 (CRITICAL)
CVE Published
May 05, 2025 - 19:15 nvd
CRITICAL 9.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.2%
Top 54% exploitable
Prevalence
Medium
AWS Amplify is popular with developers, but this specific codegen package is narrower
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

65
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +45
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy