CVE-2023-35165
JavaScript vulnerability analysis and mitigation

Overview

AWS Cloud Development Kit (AWS CDK) versions aws-cdk-lib 2.0.0 to 2.80.0 and @aws-cdk/aws-eks 1.57.0 to 1.202.0 contain a security vulnerability where the eks.Cluster and eks.FargateCluster constructs create roles with overly permissive trust policies. The vulnerability was disclosed in June 2023 and affects the AWS CDK framework used for defining cloud infrastructure in code (GitHub Advisory).

Technical details

The vulnerability involves two roles with overly permissive trust policies: 1) The CreationRole, used by lambda handlers to create clusters and deploy Kubernetes resources, affects users with CDK version 1.62.0 and higher. 2) The default MastersRole, used for kubectl commands when mastersRole property isn't provided, affects users with CDK version 1.57.0 and higher. Both roles use the account root principal in their trust policy, allowing any identity in the account with appropriate sts:AssumeRole permissions to assume these roles (GitHub Issue).

Impact

An identity with access to a role that has the appropriate sts:AssumeRole permission can gain greater than intended access to the cluster. This could potentially lead to unauthorized access to Kubernetes resources and cluster management capabilities (GitHub Advisory).

Mitigation and workarounds

The issue has been fixed in versions v1.202.0 and v2.80.0, which no longer use the account root principal and instead restrict the trust policy to specific roles of lambda handlers. For the MastersRole, users can avoid the vulnerability by explicitly providing a role using the mastersRole property. There is no workaround available for the CreationRole issue (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management