{"answers":{"affected":"2 open source packages ship an affected version, including aws-cdk-lib. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-23206 in the wild and no public exploit code.","fix":"Upgrade aws-cdk-lib to 2.177.0 or later.","what":"CVE-2025-23206 is a low-severity vulnerability in aws-cdk, published on 17 Jan 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-23206 and fix it if it is affected.\n\nWhat it is: CVE-2025-23206 is a low-severity vulnerability in aws-cdk, published on 17 Jan 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-23206 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- aws-cdk-lib (npm): affected all versions; fixed in 2.177.0\n- aws-cdk-lib (npm): affected all versions; fixed in 2.177.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-23206/ (Markdown: https://insights.sbomify.com/CVE-2025-23206/index.md)","id":"CVE-2025-23206","markdown":"https://insights.sbomify.com/CVE-2025-23206/index.md","name":"CVE-2025-23206","record":{"aliases":["GHSA-v4mq-x674-ff73"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"AWS CDK","requires_auth":"high_privilege","summary":"AWS CDK IAM OIDC provider allows insecure TLS connections by default, potentially enabling MITM attacks unless a specific feature flag is enabled.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"aws_cloud_development_kit","vendor":"amazon"}],"cvss":{"score":1.8,"severity":"low","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"description":"The AWS Cloud Development Kit (AWS CDK) is an open-source software development framework to define cloud infrastructure in code and provision it through AWS CloudFormation. Users who use IAM OIDC custom resource provider package will download CA Thumbprints as part of the custom resource workflow. However, the current `tls.connect` method will always set `rejectUnauthorized: false` which is a potential security concern. CDK should follow the best practice and set `rejectUnauthorized: true`. However, this could be a breaking change for existing CDK applications and we should fix this with a feature flag. Note that this is marked as low severity Security advisory because the issuer url is provided by CDK users who define the CDK application. If they insist on connecting to a unauthorized OIDC provider, CDK should not disallow this. Additionally, the code block is run in a Lambda environment which mitigate the MITM attack. The patch is in progress. To mitigate, upgrade to CDK v2.177.0 (Expected release date 2025-02-22). Once upgraded, users should make sure the feature flag '@aws-cdk/aws-iam:oidcRejectUnauthorizedConnections' is set to true in `cdk.context.json` or `cdk.json`. There are no known workarounds for this vulnerability.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"IAM OIDC custom resource allows connection to unauthorized OIDC provider in aws-cdk","id":"CVE-2025-23206","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"security_feature_bypass","year":"2025"},"n_packages":2,"n_references":7,"next":{"headline":"\\htmlData does not validate attribute names in KaTeX","id":"CVE-2025-23207"},"packages":[{"ecosystem":"npm","fixed":["2.177.0"],"introduced":["0"],"last_affected":[],"package":"aws-cdk-lib","purl":null,"source":"GHSA-v4mq-x674-ff73"},{"ecosystem":"npm","fixed":["2.177.0"],"introduced":["0"],"last_affected":[],"package":"aws-cdk-lib","purl":"pkg:npm/aws-cdk-lib","source":"GHSA-v4mq-x674-ff73"}],"prev":{"headline":"`frame-ancestors: self` grants all users access to formgrader in nbgrader","id":"CVE-2025-23205"},"products":["aws-cdk"],"published":"2025-01-17","related":[{"cvss_score":6.6,"headline":"AWS CDK EKS overly permissive trust policies","id":"CVE-2023-35165","kev_date_added":null,"published":"2023-06-23"},{"cvss_score":6.4,"headline":"AWS CDK RestApi not generating authorizationScope correctly in resultant CFN template","id":"CVE-2024-45037","kev_date_added":null,"published":"2024-08-27"},{"cvss_score":5.7,"headline":"AWS CDK CLI prints AWS credentials retrieved by custom credential plugins","id":"CVE-2025-2598","kev_date_added":null,"published":"2025-03-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-01-23","vendors":["aws"]},"summary":"AWS CDK IAM OIDC provider allows insecure TLS connections by default, potentially enabling MITM attacks unless a specific feature flag is enabled.","url":"https://insights.sbomify.com/CVE-2025-23206/"}