Update dependency aws-cdk-lib to v2.187.0 [SECURITY] - autoclosed #2160
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.181.0
->2.187.0
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
GitHub Vulnerability Alerts
GHSA-qq4x-c6h6-rfxh
Summary
The AWS Cloud Development Kit (CDK) is an open-source framework for defining cloud infrastructure using code. Customers use it to create their own applications which are converted to AWS CloudFormation templates during deployment to a customer’s AWS account. CDK contains pre-built components called "constructs" that are higher-level abstractions providing defaults and best practices. This approach enables developers to use familiar programming languages to define complex cloud infrastructure more efficiently than writing raw CloudFormation templates.
The CDK Cognito UserPool construct deploys an AWS cognito user pool. An Amazon Cognito user pool is a user directory for web and mobile app authentication and authorization. Customers can deploy a client under this user pool through construct ‘UserPoolClient’ or through helper method 'addClient'. A user pool client resource represents an Amazon Cognito user pool client which is a configuration within a user pool that interacts with one mobile or web application authenticating with Amazon Cognito.
When users of the 'cognito.UserPoolClient' construct generate a secret value for the application client in AWS CDK, they can then reference the generated secrets in their stack. The CDK had an issue where, when the custom resource performed an SDK API call to 'DescribeCognitoUserPoolClient' to retrieve the generated secret, the full response was logged in the associated lambda function's log group. Any user authenticated in the account where logs of the custom resource are accessible and who has read-only permission could view the secret written to those logs.
This issue does not affect customers who are generating the secret value outside of the CDK as the secret is not referenced or logged.
Impact
To leverage this issue, an actor has to be authenticated in the account where logs of the custom resource Custom::DescribeCognitoUserPoolClient are accessible and have read-only permission for lambda function logs.
Users can review access to their log group through AWS CloudTrail logs to detect any unexpected access to read the logs.
Impacted versions: >2.37.0 and <=2.187.0
Patches
The patches are included in the AWS CDK Library release v2.187.0. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes. To fully address this issue, users should rotate the secret by generating a new secret stored in AWS Secrets Manager. References to the secret will use the new secret on update.
When new CDK applications using the latest version are initialized, they will use the new behavior with updated logging.
Existing applications must upgrade to the latest version, change the feature flag (@aws-cdk/cognito:logUserPoolClientSecretValue) to false, redeploy the application to apply this fix and use the new implementation with updated logging behavior.
Workarounds
Users can override the implementation changing Logging to be Logging.withDataHidden(). For example define class CustomUserPoolClient extends UserPoolClient and in the new class define get userPoolClientSecret() to use Logging.withDataHidden().
Example
References
If you have any questions or comments about this advisory please contact AWS/Amazon Security via our vulnerability reporting page or directly via email to [email protected]. Please do not create a public GitHub issue.
Release Notes
aws/aws-cdk (aws-cdk-lib)
v2.187.0
Compare Source
Features
Nodegroup
supportnodeRepairConfig
(#32626) (b9cb47c), closes #32562ValidationErrors
instead of untyped Errors (#33912) (8b23b5d), closes #32569Bug Fixes
Alpha modules (2.187.0-alpha.0)
Features
placementGroup
toLaunchTemplateProps
andLaunchTemplate
(#33726) (e5f71db), closes #33721SupportedRegions
property forAWS::EC2::VPCEndpointService
(#33959) (0c77cb6)v2.186.0
Compare Source
⚠ BREAKING CHANGES TO EXPERIMENTAL FEATURES
CfnWorkgroup.attrWorkgroupMaxCapacity
attribute has been removed.CfnAnalysis.SheetTextBoxProperty.interactions
,CfnDashboard.SheetTextBoxProperty.interactions
, andCfnTemplate.SheetTextBoxProperty.interactions
properties have been removed.CfnDistributionConfiguration.DistributionProperty.ssmParameterConfigurations
property has been removed.Features
ValidationErrors
instead of untyped Errors (#33854) (f28eae2), closes #32569ValidationErrors
instead of untyped Errors (#33853) (b6b91dd), closes #32569ValidationErrors
instead of untyped Errors (#33855) (3ff5501), closes #32569ValidationErrors
instead of untyped Errors (#33869) (5bc9292), closes #32569ValidationErrors
instead of untyped Errors (#33870) (2dc5d70), closes #32569ValidationErrors
instead of untyped Errors (#33871) (a9bae27), closes #32569ValidationErrors
instead of untyped Errors (#33899) (0787840)ValidationErrors
instead of untyped Errors (#33885) (6bf8095)Bug Fixes
ignoreErrorOnMissingContext
parameter is misleading (#33875) (b3187b9)EventBus.grantPutEventsTo
correctly handles service principals (under feature flag) (#33729) (38d82c4), closes #22080 #22080Alpha modules (2.186.0-alpha.0)
Features
PrefixList.fromLookup()
(#33619) (b6a15f3), closes aws/aws-cdk#33606 aws/aws-cdk#15115Bug Fixes
v2.185.0
Compare Source
Features
ValidationError
instead of untyped Errors (#33753) (1fea9f1)Bug Fixes
Alpha modules (2.185.0-alpha.0)
⚠ BREAKING CHANGES TO EXPERIMENTAL FEATURES
KinesisDataFirehosePutRecord
has been renamed toFirehosePutRecord
.Bug Fixes
KinesisDataFirehosePutRecord
toFirehosePutRecord
(#33758) (e6f5bc8), closes #33757 #33798v2.184.1
Compare Source
Reverts
Alpha modules (2.184.1-alpha.0)
v2.184.0
Compare Source
Features
Bug Fixes
Alpha modules (2.184.0-alpha.0)
⚠ BREAKING CHANGES TO EXPERIMENTAL FEATURES
workflow.addconditionalTrigger
toworkflow.addConditionalTrigger
.Bug Fixes
v2.183.0
Compare Source
Features
ValidationError
instead of untyped Errors (#33700) (d12854a), closes #32569RemovalPolicies.of(scope)
(#32283) (34c547c)Bug Fixes
transitionToArchivePolicy
is specified andthroughputMode
isundefined
(#33713) (842201c)Alpha modules (2.183.0-alpha.0)
⚠ BREAKING CHANGES TO EXPERIMENTAL FEATURES
InspectorStartAssessmentRun
target's constructor now acceptsIAssessmentTemplate
instead ofCfnAssessmentTemplate
as its parameter type. To migrate existing code, use theAssessmentTemplate.fromCfnAssessmentTemplate()
method to convert yourCfnAssessmentTemplate
instances toIAssessmentTemplate
.Features
Bug Fixes
Group
in favour ofScheduleGroup
(#33678) (4d8eae9)v2.182.0
Compare Source
Features
HealthChecks
for multiple health check types, including EBS and VPC_LATTICE types (#31286) (b3edd0d), closes #31289 /github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.ts#L233 /github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.ts#L2232-L2258 /github.com/aws/aws-cdk/pull/31286#discussion_r1740763781DatabaseCluster
supportreplicationSourceIdentifier
(#33471) (878ad54), closes #33280Bug Fixes
Alpha modules (2.182.0-alpha.0)
Features
Bug Fixes
v2.181.1
Compare Source
Alpha modules (2.181.1-alpha.0)
⚠ BREAKING CHANGES TO EXPERIMENTAL FEATURES
IdentityPool
resources deployed in versions>=2.179.0
will now fail to deploy. You will need to delete theIdentityPoolRoleAttachment
from your stack via the console before redeploying.Bug Fixes
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - "every weekday" (UTC).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.