aws-cdk-lib is vulnerable to Incorrect Default Permissions
50
Medium Risk
Affected versions of this package create over-permissive roles for AWS CodePipeline, specifically the 'PipelineProdPromoteToProd' and 'PipelineSource' roles. Those role could be assumed by any entity in the account. As those roles are highly privileged, it could allow an attacker to escalate their privileges within your AWS account.
You are affected if you are using a version that falls within the vulnerable range, and define & deploy AWS CodePipeline instances via CDK.
aws-cdk-lib is vulnerable to Incorrect Default Permissions in versions 2.0.0 - 2.183.0.
Upgrade the aws-cdk-lib library to the patch version. Upgrading to the patched version alone is not sufficient; the feature flag @aws-cdk/pipelines:reduceStageRoleTrustScope must be set to true, and the infrastructure must be redeployed to fully mitigate the issue.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant