Vulnerability DatabaseGHSA-qc59-cxj2-c2w4

GHSA-qc59-cxj2-c2w4
JavaScript vulnerability analysis and mitigation

Overview

The AWS Cloud Development Kit (AWS CDK) version 2.172.0 introduced a vulnerability identified as GHSA-qc59-cxj2-c2w4, affecting aws-cdk-lib versions 2.172.0 to 2.189.1. The issue involves an aspect order change that causes unexpected permissions boundary assignments to IAM roles. This vulnerability was discovered and disclosed in April 2025, impacting applications using custom aspects for permissions boundary assignments (GitHub Advisory).

Technical details

The vulnerability stems from a new priority system introduced for Aspects execution. Prior to version 2.172.0, CDK executed Aspects based on hierarchical location. The new system introduced different priority classes: MUTATING (priority 200) for CDK API-added Aspects and DEFAULT (priority 500) for user-added Aspects. This change altered the invocation order, causing unexpected behavior when custom Aspects assign default permissions boundaries that are meant to be overridden by built-in CDK methods. The vulnerability has a CVSS score of 2.2 (Low) with a vector string of CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L (GitHub Advisory).

Impact

The vulnerability can result in IAM roles receiving incorrect permissions boundaries. This could lead to two potential scenarios: roles having insufficient permissions to perform their intended functions, or roles potentially having wider permissions than intended when combined with overly permissive role policies. However, the latter scenario requires additional misconfiguration as permissions boundaries themselves do not grant permissions (GitHub Advisory).

Mitigation and workarounds

The issue has been patched in version 2.189.1, which reverts to the pre-2.172.0 behavior. Users can access the new behavior through a feature flag: '{"context": {"@aws-cdk/core:aspectPrioritiesMutating": true}}'. As a workaround, users can assign their custom Aspect a priority of MUTATING to ensure it has the same priority as the CDK API-added Aspect, allowing the location hierarchy to determine the invocation order (GitHub Advisory).

Community reactions

GoDaddy collaborated with AWS on this issue through the coordinated vulnerability disclosure process. The vulnerability was addressed promptly with a patch release and clear documentation of the 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-65959HIGH8.7
  • JavaScriptJavaScript
  • open-webui
NoYesDec 04, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-65945HIGH7.5
  • JavaScriptJavaScript
  • jws
NoYesDec 04, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 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