Skip to main content
Vulnerability Database/CVE-2026-107332

CVE-2026-107332: AWS Toolkit for VS Code Token Disclosure

CVE-2026-107332 is an information disclosure vulnerability in AWS Toolkit for VS Code that exposes CodeCatalyst bearer tokens through insecure file permissions. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-107332 Overview

CVE-2026-107332 is an insecure file permissions vulnerability in the CodeCatalyst connection handler of the AWS Toolkit for Visual Studio Code (VS Code). Versions prior to 4.10.0 write CodeCatalyst bearer token cache files with world-readable permissions on the local file system. Any local user on the same host can read these files and recover valid bearer tokens, enabling unauthorized access to the victim's CodeCatalyst resources. The weakness is classified as CWE-276: Incorrect Default Permissions. AWS addressed the issue in AWS Toolkit for VS Code 4.10.0.

Critical Impact

Local users on a shared workstation or compromised endpoint can harvest CodeCatalyst bearer tokens and impersonate the developer against AWS CodeCatalyst services.

Affected Products

  • AWS Toolkit for Visual Studio Code versions prior to 4.10.0
  • CodeCatalyst connection handler component within the AWS Toolkit for VS Code
  • Developer workstations where multiple local user accounts share the same host

Discovery Timeline

  • 2026-10-08 - CVE-2026-107332 published to the National Vulnerability Database (NVD)
  • 2026-10-09 - Last updated in NVD database

Technical Details for CVE-2026-107332

Vulnerability Analysis

The AWS Toolkit for VS Code integrates with Amazon CodeCatalyst to let developers authenticate and interact with hosted projects. When a user signs in, the CodeCatalyst connection handler persists a bearer token in a local cache file so subsequent sessions can reuse it. In vulnerable releases, that cache file is created with world-readable permissions instead of being restricted to the owning user. Any other local account on the system can open the file and extract a live bearer token. The token can then be replayed against CodeCatalyst APIs with the original user's privileges, bypassing interactive authentication entirely.

Root Cause

The root cause is improper file permission assignment during token cache creation, categorized under CWE-276. The handler relies on default inherited permissions rather than explicitly restricting the cache file to mode 0600 (owner read/write only). On multi-user Linux, macOS, or shared Windows profiles, this exposes secrets intended to be private to the signed-in user.

Attack Vector

Exploitation requires local access with low privileges and no user interaction. An attacker with a standard account on the same host browses the known cache path used by the AWS Toolkit, reads the token file, and extracts the bearer token. The attacker then issues authenticated CodeCatalyst API requests from any location that can reach the service. Because the attack is local and non-interactive, it is well suited to post-compromise credential harvesting on shared build servers, jump hosts, and developer VDI images.

No verified public exploit code is available at the time of writing. Technical details are described in the GitHub Security Advisory GHSA-9g5j-qgqm-857j and the AWS Security Bulletin 2026-129.

Detection Methods for CVE-2026-107332

Indicators of Compromise

  • Token cache files belonging to the AWS Toolkit for VS Code with permissions broader than 0600 (for example, -rw-r--r-- on Linux or macOS).
  • Access events on AWS Toolkit cache paths performed by user accounts other than the file owner.
  • CodeCatalyst API activity originating from IP addresses, user agents, or hosts that do not match the legitimate developer's baseline.

Detection Strategies

  • Inventory endpoints with the AWS Toolkit for VS Code installed and verify the toolkit version is 4.10.0 or later.
  • Audit the file system for AWS Toolkit cache files and flag any that are world-readable or group-readable by non-owner accounts.
  • Correlate CodeCatalyst authentication and API logs against expected developer locations and devices to surface token replay.

Monitoring Recommendations

  • Monitor read access to AWS Toolkit configuration and cache directories using endpoint telemetry and file integrity monitoring.
  • Alert on CodeCatalyst bearer token use from new user agents, geolocations, or ASN ranges relative to each identity's baseline.
  • Track VS Code extension version drift across the fleet to identify hosts still running vulnerable AWS Toolkit builds.

How to Mitigate CVE-2026-107332

Immediate Actions Required

  • Upgrade the AWS Toolkit for VS Code to version 4.10.0 or later on every developer workstation and shared host.
  • Rotate any CodeCatalyst bearer tokens issued while vulnerable toolkit versions were in use, and re-authenticate affected users.
  • Review CodeCatalyst audit logs for unexpected API activity during the exposure window and investigate anomalies.

Patch Information

AWS published the fix in AWS Toolkit VSCode Release 4.10.0. The release restricts permissions on the CodeCatalyst token cache so only the owning user can read the file. Additional vendor context is available in the AWS Security Bulletin 2026-129 and the GitHub Security Advisory GHSA-9g5j-qgqm-857j.

Workarounds

  • Restrict the toolkit's cache file manually to owner read/write (chmod 600) until the patched version is deployed.
  • Avoid using the AWS Toolkit for VS Code on multi-user hosts, shared build agents, or terminal servers where untrusted local accounts exist.
  • Sign out of CodeCatalyst in the toolkit when not actively in use so that no bearer token is persisted on disk.
bash
# Configuration example: restrict AWS Toolkit cache files to the owning user
# Replace <USER> with the developer account name as appropriate for your OS.

# Linux / macOS
find "$HOME/.aws/sso/cache" -type f -exec chmod 600 {} \;
find "$HOME/.vscode/extensions" -path "*amazonwebservices.aws-toolkit-vscode*" \
  -type f -name "*codecatalyst*" -exec chmod 600 {} \;

# Verify the AWS Toolkit for VS Code is on the patched release
code --list-extensions --show-versions | grep aws-toolkit-vscode

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.