@aws-amplify/codegen-ui-react@2.20.6-062c3a5.0

Amplify UI React code generation implementation

  • latest version

    2.20.7

  • latest non vulnerable version

  • first published

    4 years ago

  • latest version published

    17 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @aws-amplify/codegen-ui-react package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Arbitrary Code Injection

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

    Affected versions of this package are vulnerable to Arbitrary Code Injection through the ReactThemeStudioTemplateRenderer in packages/codegen-ui-react/lib/react-theme-studio-template-renderer.ts. An attacker can inject arbitrary JavaScript into generated .tsx output by supplying crafted theme schema keys that are passed to factory.createIdentifier() and emitted verbatim as source. This affects theme rendering for Studio-generated components, so a malicious or tampered theme definition can break generated code and execute attacker-controlled code during component rendering or build-time processing in developer, CI, browser, or SSR contexts.

    How to fix Arbitrary Code Injection?

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

    <2.20.6