CVE-2025-23206
JavaScript vulnerability analysis and mitigation

Overview

The AWS Cloud Development Kit (AWS CDK) versions prior to 2.177.0 contain a security vulnerability in the IAM OIDC custom resource provider package. The vulnerability exists because the tls.connect method always sets rejectUnauthorized: false when downloading CA Thumbprints as part of the custom resource workflow, which could potentially allow connections to unauthorized OIDC providers (GitHub Advisory). The vulnerability was discovered in January 2025 and assigned CVE-2025-23206.

Technical details

The vulnerability stems from the implementation in the aws-cdk/packages/@aws-cdk/custom-resource-handlers/lib/aws-iam/oidc-handler/external.ts file where the TLS connection is established without proper verification. The code bypasses verification against the list of trusted CAs by setting rejectUnauthorized: false in the TLS connection options (GitHub Code). The vulnerability has been assigned a CVSS v4.0 score of 1.8 (LOW) with the vector string CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N (NVD).

Impact

The impact of this vulnerability is considered low severity because the issuer URL is provided by CDK users who define the CDK application. Additionally, the vulnerable code runs in a Lambda environment, which helps mitigate potential Man-in-the-Middle (MITM) attacks. However, the insecure connection could potentially expose the application to unauthorized OIDC providers if explicitly configured by users (GitHub Advisory).

Mitigation and workarounds

The vulnerability will be patched in AWS CDK version 2.177.0, expected to release on February 22, 2025. Users should upgrade to this version when available and enable the feature flag '@aws-cdk/aws-iam:oidcRejectUnauthorizedConnections' by setting it to true in either cdk.context.json or cdk.json. There are no known workarounds for this vulnerability other than the upgrade path (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-62427HIGH8.7
  • JavaScriptJavaScript
  • @angular/ssr
NoYesOct 16, 2025
CVE-2025-53092MEDIUM6.5
  • JavaScriptJavaScript
  • @strapi/core
NoYesOct 16, 2025
CVE-2025-11849MEDIUM6.4
  • JavaScriptJavaScript
  • Mammoth
NoYesOct 17, 2025
CVE-2025-25298MEDIUM6.3
  • JavaScriptJavaScript
  • @strapi/core
NoYesOct 16, 2025
CVE-2025-62505LOW3
  • JavaScriptJavaScript
  • @lobehub/chat
NoYesOct 17, 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