CVE-2025-4318: Input validation issue in AWS Amplify Studio UI component properties

Published May 5, 2025
·
Updated

Summary The AWS Amplify Studio amplify-codegen-ui is a package that generates front-end code from UI Builder entities (components, forms, views, and themes) primarily used in AWS Amplify Studio for component previews and in AWS Command Line Interface (AWS CLI) for generating component files in customers' local applications.

An issue exists in the Amplify Studio property binding process of the amplify-codegen-ui package that could potentially allow an authenticated user to run arbitrary JavaScript code during the component rendering and build process.

Impact When importing a component schema using the create-component command, Amplify Studio will import and generate the component on the users' behalf. The expression-binding function does not validate the component schema properties before converting them to expressions. As a result, an authenticated user who can create or modify components could run arbitrary JavaScript code during the component rendering and build process.

Impacted versions: <=2.20.2

Patches This issue has been addressed partially in version 2.20.3 and additional fixes in 2.20.4. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.

Workarounds There are no workarounds. Upgrade to version 2.20.4.

If you have any questions or comments about this advisory, AWS asks that you contact AWS/Amazon Security via the issue-reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.

Credit AWS would like to thank ray the bounty hunter for collaborating on this issue through the coordinated issue disclosure process.

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
AWS Amplify Studio
AWS amplify-codegen-ui
npm/@aws-amplify/codegen-ui-react<=2.20.2
2.20.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@aws-amplify/codegen-ui-react to a version that resolves this vulnerability.

    Fixed in 2.20.3
  2. Upgrade

    Upgrade amplify-codegen-ui (aws-amplify/amplify-codegen-ui) to a version that resolves this vulnerability.

    Fixed in 2.20.4

Event History

May 5, 2025
CVE Published
via MITRE·06:16 PM
Data Sourced
via MITRE·06:16 PM
DescriptionWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Jul 30, 2026
Advisory Published
via GitHub·08:57 PM
Data Sourced
via GitHub·08:57 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-4318?

CVE-2025-4318 is classified as a critical vulnerability due to its potential to allow arbitrary code execution.

2

How do I fix CVE-2025-4318?

Fix CVE-2025-4318 by upgrading to the latest version of AWS Amplify Studio that includes input validation improvements.

3

Who is affected by CVE-2025-4318?

CVE-2025-4318 affects users of AWS Amplify Studio and the amplify-codegen-ui package who create or modify components.

4

What are the implications of exploiting CVE-2025-4318?

Exploiting CVE-2025-4318 can lead to the execution of arbitrary JavaScript code, potentially compromising the application.

5

Is there a known exploit for CVE-2025-4318?

As of now, there are no publicly known exploits for CVE-2025-4318, but the vulnerability remains a significant risk.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203