Skip to content
Start with Identity
Identity CVE · Other

CVE-2025-8217Over-scoped CodeBuild GitHub token let an attacker ship code in Amazon Q Developer 1.84.0

SWI rating: mediumCVSS 4.0
Product: Amazon Q Developer VS Code extensionVendor: Amazon Web ServicesCWE-506Disclosed: 2025-07-23Status: PatchedNVD ↗

What broke

AWS's security bulletin AWS-2025-015, first published July 23, 2025, says AWS found "an inappropriately scoped GitHub token in their CodeBuild configuration" for the Amazon Q Developer extension for Visual Studio Code. An attacker used that token to commit code to the extension's open-source repository, and the release process picked it up automatically and shipped it as version 1.84.0. NVD describes the result as "inert, injected code designed to call the Q Developer CLI" that runs when the extension launches. AWS Security inspected the code and found it "was unsuccessful in executing due to a syntax error," which prevented changes to any services or customer environments. Neither AWS nor the GitHub advisory describes what the code would have done had it run.

The CWE is CWE-506 (embedded malicious code). NVD has not scored it; the CNA (AWS) score is CVSS 3.1 4.0, with a local attack vector and integrity impact only. It is not on CISA KEV.

Why it matters

The vulnerable identity was the build pipeline's, not a user's. A CodeBuild job held a GitHub token that could write to the repository it built, so whoever obtained that token could decide what code an official release contained. The extension is an AI coding assistant that runs inside developer editors with the developer's own file and network access, so the reach of a working payload would have been every developer who updated. The low CVSS reflects luck, not design: the control that failed was the token's scope, and nothing downstream caught the commit before release. The same release-path weakness appears in Trivy and tj-actions/changed-files.

What to do

  • Remove every 1.84.0 installation, including forks and derivative copies, and update to 1.85.0. AWS publishes the 1.84.0 SHA-256 so you can find copies.
  • Give CI build jobs read-only repository tokens, and keep write and release permissions in a separate, reviewed step. Apply least privilege to every service account a pipeline uses.
  • Require reviewed pull requests for anything that reaches a release branch, so a token alone cannot publish code.

After you patch

  • Inventory the tokens your own build systems hold, their scopes and their expiry, and rotate any long-lived token with write access. See secrets rotation.

Sources

Last reviewed By SWI Community TeamSuggest a correctionHow we research
Know a primary source we should add, or a patch status that has changed? Email community@startwithidentity.com. See all briefs in the identity CVE catalog, or volunteer as a CVE Analyst.
Compiled from vendor advisories, NVD, CISA KEV, and public research. CVSS figures can disagree across NVD and the CNA. Confirm affected versions against the vendor advisory before you patch. Independent, community-driven analysis. See the disclaimer.