TL;DR: On December 1, 2026, AWS published bulletin 2026-206-AWS for Language Servers for AWS, the runtime behind the Amazon Q Developer IDE plugins. Five CVEs (CVE-2026-137931 to CVE-2026-137935) share one theme: a consent decision was stored, and the later check that reused it compared too little. One check matched an MCP server approval on the configuration fingerprint or the workspace instead of both. Another fingerprint left out environment variables and headers. Two more were workspace-boundary checks that did not resolve symlinks. The fix for agent builders is a rule you can test: an approval is a record of the full tuple of inputs that determine behavior, and a reuse check must match every element of the tuple. Below: what the bulletin says, a runnable simulation, a regression test, and a design checklist.
What did AWS actually disclose on December 1?
The bulletin is titled "Issue with Language Servers for AWS - MCP consent, command execution and workspace boundary issues" and is rated Important. It lists no CVSS scores and no workarounds. The component is @aws/lsp-codewhisperer on npm, and the first version that fixes all five issues is runtime 1.81.0 (npm 0.0.130). The bulletin credits Kingsley Olukanni and zx (Jace) for coordinated disclosure.
| CVE | Issue (from the bulletin) | Fixed in |
|---|---|---|
| CVE-2026-137931 | Consent fingerprint omitted some inputs, so a previously approved registry-resolved MCP server could run changed code when its environment variables or headers changed | 1.78.0 |
| CVE-2026-137932 | Consent check accepted either the configuration fingerprint or the workspace, not both | 1.71.0 |
| CVE-2026-137933 | Code review tool passed agent-supplied file paths to a shell command without neutralizing special characters | 1.81.0 |
| CVE-2026-137934 | Shell tool boundary check did not resolve symlinks, so read-only commands could read outside the workspace | 1.81.0 |
| CVE-2026-137935 | File tool boundary check treated a symlink as in-workspace even when its external target did not exist, allowing a write outside the workspace | 1.74.0 |
Three of the five (137931, 137932, 137935) are described as remaining issues in the fixes for two earlier CVEs, CVE-2026-12957 and CVE-2026-12958. That detail matters more than any single bug. Someone fixed the first report, and the fix covered the reported shape but not its neighbors.
Why is a consent fingerprint a security boundary?
An agent that launches MCP servers from a workspace file has a trust problem. The file can change after the user said yes. Tools such as npx or uvx also resolve to different code depending on the registry, a version, or a header. So an IDE records an approval and later asks, "is this the thing the user approved?"
The record is only as strong as the question. If the record stores a hash of command and args, the answer to "same thing?" is yes for any change in env, headers, cwd, or the registry the package manager reads. Those fields are not decoration. A registry setting or a proxy header decides which bytes run. A fingerprint that omits them approves a name while the machine runs an object, the same name-versus-object gap this series has covered for file paths.
The same logic applies to the workspace. An approval granted in one project is a statement about that project. Reusing it in another because the config hash happens to match is a separate decision that nobody made.
How do an OR check and a partial fingerprint behave side by side?
The simulation below is illustrative. It is a toy model of the check shapes, not AWS code. It stores one approval, then asks four question variants about three changed contexts: environment swapped in the same workspace, same config in a new workspace, and everything changed.
import hashlib, json
def h(obj):
return hashlib.sha256(json.dumps(obj, sort_keys=True).encode()).hexdigest()[:12]
def full_fp(cfg): # everything that decides what runs
return h({k: cfg[k] for k in ("command", "args", "env", "headers", "cwd")})
def partial_fp(cfg): # forgets env and headers
return h({k: cfg[k] for k in ("command", "args")})
def consent_or(store, cfg, ws, fp): # fingerprint OR workspace
return any(a["fp"] == fp(cfg) or a["ws"] == ws for a in store)
def consent_and(store, cfg, ws, fp): # fingerprint AND workspace
return any(a["fp"] == fp(cfg) and a["ws"] == ws for a in store)
Running it prints this table. "silent" means the old approval was reused with no prompt.
variant original env swapped new workspace all changed
partial fp + OR silent silent silent silent
partial fp + AND silent silent PROMPT PROMPT
full fp + OR silent silent PROMPT PROMPT
full fp + AND silent PROMPT PROMPT PROMPT
Read it column by column. The first column is the legitimate case and must stay silent in all four variants. The other three are the attack surface. With a partial fingerprint and an OR rule, every change is silent: 3 of 3. Fixing only the rule (AND) still leaves the swapped environment silent, because the fingerprint cannot see it. Fixing only the fingerprint (full, but OR) still leaves the swapped environment silent, because a matching workspace alone is enough. Only the design that fixes both gives 0 of 3.
That table is the main lesson. Two independent defects can each hide the other. A reviewer who fixes one and re-tests with a single scenario may see a green result.
What should the regression test look like?
Test the matrix, not the incident. One incident test proves the reported shape is fixed. A matrix test proves that every element of the approval tuple is bound.
import pytest
BASE = {"command": "npx", "args": ["-y", "docs-server"],
"env": {"REGISTRY": "https://registry.npmjs.org"},
"headers": {}, "cwd": "/work/a"}
MUTATIONS = {
"command": lambda c: {**c, "command": "uvx"},
"args": lambda c: {**c, "args": ["-y", "other-server"]},
"env": lambda c: {**c, "env": {"REGISTRY": "https://registry.example/npm"}},
"headers": lambda c: {**c, "headers": {"X-Route": "alt"}},
"cwd": lambda c: {**c, "cwd": "/work/b"},
}
@pytest.mark.parametrize("field", MUTATIONS)
def test_changing_any_field_requires_new_consent(field):
store = approve(BASE, workspace="/work/a")
assert needs_prompt(store, MUTATIONS[field](BASE), workspace="/work/a")
def test_same_config_other_workspace_requires_new_consent():
store = approve(BASE, workspace="/work/a")
assert needs_prompt(store, BASE, workspace="/work/b")
def test_every_config_field_is_in_the_fingerprint():
# fails the day someone adds a config key and forgets the fingerprint
assert set(MUTATIONS) == set(fingerprint_fields())
The last test is the cheap one that pays for itself. It ties the list of config keys to the list of fingerprinted keys, so adding a new option without binding it breaks the build instead of shipping a hole. Keeping a short list of fields that are excluded, rather than a list of fields that are included, is better still: new keys are then in the fingerprint by default.
What about the two symlink bugs?
CVE-2026-137934 and CVE-2026-137935 are the same family as the consent bugs, applied to paths. In both, the check ran on the path string and the OS later followed the link. The second one has a detail worth keeping: the link pointed at a target that did not exist yet. A check that calls realpath on a non-existent target may fall back to the unresolved name and decide it is inside the workspace. Then the write creates the file outside.
import os
def inside(workspace, path):
ws = os.path.realpath(workspace)
# resolve the deepest existing ancestor, then re-append the remainder
p, tail = os.path.abspath(path), []
while not os.path.lexists(p):
p, leaf = os.path.split(p)
tail.append(leaf)
if os.path.islink(p) and not os.path.exists(p):
return False # dangling link: refuse, do not guess
real = os.path.join(os.path.realpath(p), *reversed(tail))
return os.path.commonpath([ws, real]) == ws
Refusing a dangling link is a policy choice, and a safe one: the agent has no ordinary reason to write through a link that points nowhere. Even this is a check-then-use pattern, so the stronger fix is to open with O_NOFOLLOW or to perform the operation relative to a directory handle, as covered in the earlier post on object-bound confinement.
What does the command injection teach about agent-supplied strings?
CVE-2026-137933 is the plain one: a file path chosen by the agent went into a shell command line. The bulletin notes that crafted workspace content could trigger it without the user asking for a code review. Two things follow. First, anything the model or the workspace can influence is attacker-controlled input, including file names. Second, the trigger was a tool the user never invoked. If your gate only reviews user-requested actions, background tool calls are outside its view.
The mitigation is old and boring: pass arguments as a list with no shell, or quote with a proper library, and treat file names like any other untrusted field.
import subprocess
subprocess.run(["git", "diff", "--", path], check=True) # no shell, path is one argv element
A design checklist for consent stores
Use this list when you review an agent that remembers approvals.
- Enumerate behavior-determining inputs. Command, arguments, environment, headers, working directory, package source, resolved version. If it changes what runs, it belongs in the record.
- Prefer excluding to including. Hash the whole config object and subtract a short, reviewed list of fields that cannot affect behavior.
- Match with AND. An approval is for a tuple of (config, workspace, user). Any match on a subset is a different decision.
- Bind to what resolves, not what is named. For registry-resolved servers, record the resolved version or digest, or re-prompt when resolution changes.
- Test by mutation. One test per field, plus the cross-workspace test, plus the "fingerprint covers all config keys" test.
- Fix the class, not the report. Three of these five CVEs were leftovers from earlier fixes. When you patch a report, write down the neighbors and test them in the same change.
- Expect stale runtimes. The bulletin says the plugin version alone does not reveal the language server version, and offline, pinned, or fallback runtimes may not update. Log the runtime version at startup so an audit can answer "which one are we running?"
FAQ
Which versions are affected by the December 1 AWS bulletin?
It depends on the CVE. CVE-2026-137931 affects runtime 1.65.0 up to but not including 1.78.0. CVE-2026-137932 affects 1.65.0 up to 1.71.0. CVE-2026-137935 affects 1.69.0 up to 1.74.0. CVE-2026-137933 and CVE-2026-137934 affect everything before 1.81.0. Version 1.81.0 fixes all five.
Is there a workaround?
The bulletin lists none. The resolution is to upgrade, and to patch any forked or derivative code.
Is a hash of the server command enough for an MCP consent record?
No. Environment variables, headers, working directory, and the package source all change what executes. A fingerprint should cover every one, or exclude only fields reviewed as inert.
Why did fixing the first CVE not close these?
The bulletin describes three of the five as remaining issues in earlier fixes. The earlier patches covered the reported path while neighboring paths used the same weak comparison. Matrix tests that mutate each field are the cheapest defense against that pattern.
Do these results prove the product was widely exploited?
No. The bulletin does not report exploitation, and a secondary summary states none of the five are in CISA's KEV catalog. The value here is the design lesson, not an incident count.
Sources
- AWS Security Bulletin 2026-206-AWS, published December 1, 2026: https://aws.amazon.com/security/security-bulletins/2026-206-aws/
- Package: https://www.npmjs.com/package/@aws/lsp-codewhisperer
- Secondary summary of the cluster: https://hol.org/blog/aws-language-servers-mcp-consent-cluster
The simulation above is illustrative and models check shapes only. It does not reproduce AWS code or exploit any product.
Top comments (0)