Quick answers
- Is CVE-2025-4318 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2025-4318 being exploited in the wild.
- How severe is CVE-2025-4318?
- Critical severity, with a CVSS score of 4, published 30 July 2026.
- Which products and versions are affected?
- AWS Amplify-Codegen-Ui <= 2.20.2; @aws-amplify/codegen-ui-react (npm) <= 2.20.2, SEMVER:introduced=0,fixed=2.20.3.
- Is there a fix for CVE-2025-4318?
- Yes. @aws-amplify/codegen-ui-react (npm): upgrade to 2.20.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2025-4318 attacked?
- It is attacked over the network.
- Am I affected by CVE-2025-4318?
- Check whether you run Amazon AWS, AWS Amplify-Codegen-Ui or @aws-amplify/codegen-ui-react (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- @aws-amplify/codegen-ui-react (npm): upgrade to 2.20.3 or later
npm install @aws-amplify/codegen-ui-react@2.20.3
Technical details
The vulnerability is a code injection flaw in Amazon @aws-amplify/codegen-ui-react that was previously identified as CVE-2025-4318. The original patch was incomplete, leaving the code generation process still vulnerable to malicious input injection. An attacker who can control input to the code generation process (such as through manipulated design files or configuration) can inject arbitrary code that gets embedded into the generated React component code. This allows arbitrary code execution in the context of applications using the generated components. The fix status and available patches should be verified through AWS security bulletins.
Affected products
- Amazon @aws-amplify/codegen-ui-react
Identifiers
- CVE-2025-4318
- GHSA-hf3j-86p7-mfw8
Timeline
- 2026-09-22: disclosed