Eval Injection Affecting @aws-amplify/codegen-ui-react package, versions <2.20.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Eval Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-AWSAMPLIFYCODEGENUIREACT-10119230
  • published14 May 2025
  • disclosed5 May 2025
  • creditray the bounty hunter

Introduced: 5 May 2025

NewCVE-2025-4318  (opens in a new tab)
CWE-95  (opens in a new tab)

How to fix?

Upgrade @aws-amplify/codegen-ui-react to version 2.20.3 or higher.

Overview

@aws-amplify/codegen-ui-react is an Amplify UI React code generation implementation

Affected versions of this package are vulnerable to Eval Injection through the UI component property expressions. An authenticated user who can create or modify components can execute arbitrary JavaScript code during the component rendering and build process by crafting malicious input.

CVSS Base Scores

version 4.0
version 3.1