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 | Vendor | Product | Affected 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.
References
- https://aws.amazon.com/security/security-bulletins/AWS-2025-010/ Vendor Advisory
- https://github.com/aws-amplify/amplify-codegen-ui/security/advisories/GHSA-hf3j-... Vendor Advisory
- https://github.com/aws-amplify/amplify-codegen-ui/releases/tag/v2.20.3 Patch
- https://aws.amazon.com/security/security-bulletins/AWS-2025-010
- https://blog.securelayer7.net/cve-2025-4318-aws-amplify-rce
- https://github.com/advisories/GHSA-hf3j-86p7-mfw8
- https://nvd.nist.gov/vuln/detail/CVE-2025-4318 Vendor Advisory
- https://github.com/aws-amplify/amplify-codegen-ui Product
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/4xxx/CVE-2025-4318.j... Vendor Advisory
- https://github.com/aws-amplify/amplify-codegen-ui/commit/ca98c38b7c3d69ae7c94d2f... Patch
- https://blog.securelayer7.net/cve-2025-4318-aws-amplify-rce/ Exploit
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
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
GHSA-hf3j-86p7-mfw8 · GHSA
GHSA-hf3j-86p7-mfw8 · OSV
CVE-2025-4318 · OSV
Track software like this
Free during beta