Intel

AIKIDO-2026-66670

aws-cdk-lib is vulnerable to Improper Link Resolution Before File Access ('Link Following')

CVE-2026-107608Published Oct 21, 2026
October 21, 2026

55

CVE Score

Medium

Improper Link Resolution Before File Access ('Link Following')

Are you affected? Scan for Free

TL;DR

AWS CDK's AssetStaging construct, reached through stageByBundling, calls determineBundledAsset to stage Docker or local bundling output as the deployed asset. Before the fix, a single file was accepted even when it was a symlink, so the publisher could stream a readable build-host file as the file-asset upload. A non-archived output directory was staged without checking whether symlinks inside it pointed outside the bundle directory. The Docker container or local bundling command supplies that output, including any symlinks. AssetStagingProps.follow defaults to SymlinkFollowMode.EXTERNAL. Single-file symlinks were not checked in any follow mode, and external links in a directory were not checked even when follow was SymlinkFollowMode.BLOCK_EXTERNAL. The fix in aws-cdk-lib 2.267.0 rejects a single-file bundling output when lstatSync reports a symlink. It also adds a validateInternalSymlinks guard, called from determineBundledAsset when followMode is BLOCK_EXTERNAL, that throws if an external symlink is found in the non-archived output.

How do I fix this?

Upgrade the aws-cdk-lib package to a patched version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and are using Docker or local asset bundling in an AWS CDK application.

Versions

0.0.1 - 2.266.0

Fixed in 2.267.0

Background info

aws-cdk-lib is vulnerable to Improper Link Resolution Before File Access ('Link Following') in versions 0.0.1 - 2.266.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea