Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.4

CVE-2025-4318: AWS Amplify Studio UI can execute unwanted JavaScript

CVE-2025-4318 · published 1 year ago
Summary

The UI component builder in AWS Amplify Studio and its code‑generation tools does not verify what is entered in component property fields. A logged‑in user who is allowed to create or edit components could insert code that runs automatically when the component is displayed or built. Limit component‑creation permissions to trusted people and update to the newest version of the tools, which adds the necessary checks.

What to do
  • Update aws-amplify codegen-ui-react to version 2.20.3.
  • Update aws-amplify @aws-amplify/codegen-ui-react to version 2.20.3.
  • Update amazon amplify studio to version 2.20.3 or later.
Affected software
Ecosystem VendorProductAffected versions
– amazon amplify studio < 2.20.3
npm aws-amplify codegen-ui-react <= 2.20.2
Fix: upgrade to 2.20.3
npm aws-amplify @aws-amplify/codegen-ui-react < 2.20.3
Fix: upgrade to 2.20.3
Original advisory text
Input validation issue in AWS Amplify Studio UI component properties
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.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically
  • Gives an attacker full control
Severity
9.4 Critical
Exploitation
<1% chance of attack within 30 days
Type
CWE-95Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Timeline
Published5 May 2025
Updated15 Nov 2026
First seen29 Jul 2026
Sources
CVE-2025-4318 · NVD
CVE-2025-4318 · MITRE
CVE-2025-4318 · OSV
Track software like this
Free during beta