{"id":"CVE-2025-4318","aliases":["CVE-2025-4318","GHSA-hf3j-86p7-mfw8"],"related":[],"kind":"vulnerability","state":"published","title":"Input validation issue in AWS Amplify Studio UI component properties","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe AWS Amplify Studio [amplify-codegen-ui](https://github.com/aws-amplify/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.\n\nAn 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.\n\n### Impact\nWhen importing a component schema using the [create-component](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/amplifyuibuilder/create-component.html) 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. \n\n**Impacted versions: <=2.20.2**\n\n### Patches\nThis issue has been addressed partially in version [2.20.3](https://github.com/aws-amplify/amplify-codegen-ui/pull/1174) and additional fixes in [2.20.4](https://github.com/aws-amplify/amplify-codegen-ui/pull/1196). We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.\n\n### Workarounds\nThere are no workarounds. Upgrade to version [2.20.4](https://github.com/aws-amplify/amplify-codegen-ui/releases/tag/v2.20.4).\n\nIf you have any questions or comments about this advisory, AWS asks that you contact AWS/Amazon Security via the [issue-reporting page](https://aws.amazon.com/security/vulnerability-reporting/) or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.\n\n### Credit\nAWS would like to thank `ray the bounty hunter` for collaborating on this issue through the coordinated issue disclosure process.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las expresiones de propiedad del componente de interfaz de usuario de AWS Amplify Studio en el paquete aws-amplify/amplify-codegen-ui carecen de validación de entrada. Esto podría permitir que un usuario autenticado con acceso para crear o modificar componentes ejecute código JavaScript arbitrario durante el proceso de renderizado y compilación de componentes.","source":"nvd"}],"published":"2025-05-05T18:16:34.075Z","modified":"2026-07-30T21:00:29.843Z","severity":{"scorer":"AMZN","scheme":"CVSS:4.0","vector":"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","score":9,"rating":"CRITICAL"},"severities":[{"scorer":"AMZN","scheme":"CVSS:4.0","vector":"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","score":9,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","rating":"CRITICAL"}],"cwes":["CWE-95"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.0","fixed":"2.20.3","status":"affected"}],"vendor":"Amazon","product":"Amplify Studio","package":"amplify-codegen-ui","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.20.3"}],"ecosystem":"npm","package":"@aws-amplify/codegen-ui-react","purl":"pkg:npm/%40aws-amplify/codegen-ui-react","source":"ghsa"}],"references":[{"url":"https://aws.amazon.com/security/security-bulletins/AWS-2025-010/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/aws-amplify/amplify-codegen-ui/releases/tag/v2.20.3","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/aws-amplify/amplify-codegen-ui/security/advisories/GHSA-hf3j-86p7-mfw8","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://blog.securelayer7.net/cve-2025-4318-aws-amplify-rce/","tags":["exploit"],"sources":["cvelist","nvd"]},{"url":"https://github.com/aws-amplify/amplify-codegen-ui/commit/ca98c38b7c3d69ae7c94d2f62b51e32e8165dae6","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4318","tags":["advisory"],"sources":["ghsa"]},{"url":"https://aws.amazon.com/security/security-bulletins/AWS-2025-010","tags":["web"],"sources":["ghsa"]},{"url":"https://blog.securelayer7.net/cve-2025-4318-aws-amplify-rce","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/aws-amplify/amplify-codegen-ui","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"AMZN","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-07-18T16:07:11.415Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-4318","url":"https://www.cve.org/CVERecord?id=CVE-2025-4318","licence":"CVE Terms of Use","modified":"2026-07-29T15:18:10.368Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hf3j-86p7-mfw8","url":"https://github.com/advisories/GHSA-hf3j-86p7-mfw8","licence":"CC-BY-4.0","modified":"2026-07-30T21:00:29.843Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-4318","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4318","licence":"Public domain","modified":"2026-07-29T16:17:47.997Z"}],"updatedAt":"2026-11-25T22:58:57.602Z","epss":{"score":0.01013,"percentile":0.64189,"date":"2026-12-01T12:00:22.000Z"}}