Potential Insecure Connection in AWS Cloud Development Kit OIDC Custom Resource Provider
CVE-2025-23206
What is CVE-2025-23206?
The AWS Cloud Development Kit (AWS CDK) is susceptible to an insecure connection setting in its OIDC custom resource provider package. The method tls.connect
is currently configured to allow unauthorized connections by setting rejectUnauthorized: false
, which may expose users to potential security risks. Although users can choose to connect to unauthorized OIDC providers, AWS CDK should implement best practices by setting rejectUnauthorized: true
. This change could impact existing applications, and a feature flag should be introduced to manage this modification seamlessly. The execution of this code occurs in a Lambda environment, which reduces the potential for man-in-the-middle attacks. Users are advised to upgrade to AWS CDK version 2.177.0, expected for release on February 22, 2025, and to enable the feature flag '@aws-cdk/aws-iam:oidcRejectUnauthorizedConnections' in their configuration. Currently, there are no known workarounds for this issue.
Affected Version(s)
aws-cdk < 2.177.0