---
id: "CVE-2026-107608"
kind: "vulnerability"
aliases: ["CVE-2026-107608"]
title: "AWS CDK: symlinks injected during Docker asset bundling expose host files"
severity: "medium"
cvss: 6.8
epss: 0.00141
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["aws", "aws-cdk", "infrastructure-as-code", "lab-disclosure", "package", "python", "typescript"]
not_affected_if: ["already-on-2.267.0-or-later", "no-docker-bundling", "trusted-dockerfiles-only"]
published_at: "2026-10-08T20:17:34+00:00"
first_seen_at: "2026-10-24T19:28:16+00:00"
updated_at: "2026-10-25T12:38:49+00:00"
sources: [{"source": "lab", "url": "https://aws.amazon.com/security/security-bulletins/rss/2026-131-aws/", "first_seen_at": "2026-10-24T19:28:16+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-107608", "first_seen_at": "2026-10-24T20:15:27+00:00"}, {"source": "epss", "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-107608", "first_seen_at": "2026-10-25T12:38:49+00:00"}]
---

# AWS CDK: symlinks injected during Docker asset bundling expose host files

In aws-cdk-lib before 2.267.0, a Dockerfile used for asset bundling could insert a symlinked file or directory into the bundling output without that symlink being declared as input. The symlink can point outside the bundle, so content from the build machine can be pulled into the deployed asset.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Run `npx cdk --version` or check `aws-cdk-lib` in `package.json` / `package-lock.json` against `2.267.0`
- Search the project for Docker-based bundling (`bundling:` with `image` or a `dockerfile` in CDK constructs such as `lambda.Code.fromAsset` options) and review the Dockerfiles used
- Check whether bundling runs untrusted or third-party Dockerfiles

## Fix

- Upgrade `aws-cdk-lib` to `2.267.0` or later
- Patch any forked or derivative CDK code, per the AWS bulletin
- Until upgraded, audit all Docker bundling containers and their dependencies to confirm no untrusted code runs inside them

## Mitigated for you by

- Team (workaround): covers Docker-based asset bundling in aws-cdk-lib before 2.267.0, by confirming that no untrusted code executes inside the bundling containers. Limits: Does not fix the symlink insertion itself; the document states it only reduces the possibility of unexpected information being exposed. Still: Audit all Docker bundling containers and their dependencies to confirm no untrusted code executes in the bundling environment, and upgrade to aws-cdk-lib 2.267.0. https://aws.amazon.com/security/security-bulletins/rss/2026-131-aws/

## Timeline

- 2026-10-24T19:28:16+00:00 lab https://aws.amazon.com/security/security-bulletins/rss/2026-131-aws/ — AWS: CVE-2026-107608: Improper link resolution in asset bundling output handling in aws-cdk-lib
- 2026-10-24T20:15:27+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-107608
- 2026-10-25T12:38:49+00:00 epss https://api.first.org/data/v1/epss?cve=CVE-2026-107608

## Documents

- [advisory] AWS: CVE-2026-107608: Improper link resolution in asset bundling output handling in aws-cdk-lib https://aws.amazon.com/security/security-bulletins/rss/2026-131-aws/

## From the sources

CVE-2026-107608: Improper link resolution in asset bundling output handling in aws-cdk-lib

### CVE-2026-107608: Improper link resolution in asset bundling output handling in aws-cdk-lib

Bulletin ID: 2026-131-AWS Scope: AWS Content Type: Important (requires attention) Publication Date: 10/08/2026 12:30 PM PDT

Description:

AWS CDK is an open source framework that allows customers to build cloud infrastructure using their favorite programming language (Python, Typescript, C#, Go). That infrastructure is then able to be deployed with AWS CDK command line commands to AWS CloudFormation. We identified CVE-2026-107608, which is an issue where Docker files could be configured to insert symlinked files into the output of the AWS CDK asset bundling process when it was invoked with a Docker file. When bundling an asset using AWS CDK with a docker file, prior to 2.267.0, it was possible for a docker file to insert a symlinked file or directory into the output of asset bundling without the symlink having been provided as input to the bundling process.

Impacted versions: All aws-cdk-lib versions before 2.267.0

Resolution:

This issue has been addressed in aws-cdk-lib version 2.267.0. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.

Workarounds:

If you cannot immediately upgrade, you can reduce the possibility of streaming unexpected information by auditing all Docker bundling containers and their dependencies to confirm that no untrusted code executes inside the configured bundling environment.

References:

- CVE-2026-107608
- GHSA-h6j4-qpp7-q28p

 Please email aws-security@amazon.com with any security questions or concerns.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
