Miggo Logo

GHSA-qc59-cxj2-c2w4:
aws-cdk-lib's aspect order change causes different Permissions Boundary assigned to Role

2.2

CVSS Score
3.1

Basic Information

CVE ID
-
EPSS Score
-
Published
4/15/2025
Updated
4/15/2025
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
aws-cdk-libnpm>= 2.172.0, < 2.189.12.189.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability occurs because AWS CDK versions 2.172.0 to <2.189.1 assigned a MUTATING priority (200) to aspects applied internally by CDK constructs, while user-defined aspects defaulted to DEFAULT priority (500). Since higher priority numbers execute later, user aspects could unintentionally override CDK's intended specific configurations (like Permissions Boundaries). The identified functions are those within the CDK library that were patched to change this fixed MUTATING priority to a conditional one, dependent on a feature flag. In the vulnerable versions, these functions directly contributed to the incorrect aspect ordering by applying aspects with the lower MUTATING priority, which were then susceptible to being overridden by user aspects with the higher DEFAULT priority.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Summ*ry T** [*WS *lou* **v*lopm*nt Kit (*WS **K)](*ttps://*ws.*m*zon.*om/**k/) is *n op*n-sour** so*tw*r* **v*lopm*nt *r*m*work *or ***inin* *lou* in*r*stru*tur* in *o** *n* provisionin* it t*rou** *WS *lou**orm*tion. In t** **K, **v*lop*rs or**

Reasoning

T** vuln*r**ility o**urs ****us* *WS **K v*rsions *.***.* to <*.***.* *ssi*n** * `MUT*TIN*` priority (***) to *sp**ts *ppli** int*rn*lly *y **K *onstru*ts, w*il* us*r-***in** *sp**ts ****ult** to `****ULT` priority (***). Sin** *i***r priority num**r