Intel

AIKIDO-2025-10233

@aws-amplify/codegen-ui-react is vulnerable to Cross-site Scripting (XSS)

CVE-2025-4318Published Apr 14, 2025
April 14, 2025

95

CVE Score

Critical

Cross-site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

Affected versions of this package fail to properly sanitize expression bindings when recursively rendering collection-type components, allowing malicious input to be processed unsafely. An attacker can craft a malicious component with injected expressions or scripts, which Amplify Studio will render without sanitization, potentially leading to cross-site scripting (XSS), data manipulation, or remote code execution, depending on the context.

How do I fix this?

Upgrade the @aws-amplify/codegen-ui-react library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

2.1.0 - 2.20.2

Fixed in 2.20.3

Background info

@aws-amplify/codegen-ui-react is vulnerable to Cross-site Scripting (XSS) in versions 2.1.0 - 2.20.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea