
Why it mattersA team using CodeQL for code scanning gets agent-reachable code on its threat model. Nobody has to add a custom query for MCP inputs.
A code scanner that watches a repository's web routes and database queries now watches MCP servers too. GitHub tagged CodeQL 2.27.5 and 2.27.6 on 4 December 2026. The two releases go out together to the GitHub code scanning service. A GHES 3.24 release will include the same functionality.
The headline change in 2.27.5 is unsafe deserialization detection for
Rust. A Rust project writes serde or bincode calls that turn bytes
into typed data. A call that reads user-controlled bytes without a
whitelist is a classic remote execution path. CodeQL's new
rust/unsafe-deserialization query flags the pattern. A second new Rust
query, rust/access-after-lifetime-ended, finds pointer accesses that
are no longer valid.
Where the MCP input tracking lives
The second change in 2.27.5 is the MCP piece. CodeQL now tracks data from the input of an MCP server call through the rest of the program. The feature works in JavaScript, TypeScript and Python. Any argument the model passes into a tool is marked as untrusted. From there CodeQL follows it through the usual sinks. SQL calls. Shell calls. File system paths. The threat model for an agent-facing service now lines up with the one a human-facing service already has.
The release also adds a cluster of language improvements. CodeQL now
follows data from Zod's parse and safeParse calls in JavaScript
and TypeScript, including the async variants. In Java and Kotlin it
tracks untrusted data through Reactor's Mono<T>. In C# it follows
data through property patterns in is expressions and switch
cases. In Go it tracks values through functions in the maps
package.
The query precision work
The JavaScript and TypeScript command injection queries track more
calls. A spawn or execFile call with a shell enabled is now
flagged when its arguments come from untrusted input. The Java and Kotlin cryptography queries now match algorithm
names and modes regardless of letter case. Python's py/tarslip flags
untrusted archive members. C and C++ cleartext detection tracks
sensitive data through character types.
CodeQL 2.27.6 updates the bundled JDK
The second release does one thing. It updates the bundled JDK to
Temurin jdk-25.0.5.1+2. The purpose is
to mitigate Java4Shell, tracked as CVE-2026-114938. The Java
extractor also disables HotSpot Base64 intrinsics when it uses the
bundled JDK. A team pinning its own JDK is unaffected.
The two releases auto-deploy to users of code scanning on github.com. A team that runs CodeQL on its own infrastructure picks the release up on the next pull. The MCP input tracking is on by default in the three listed languages. A repository that exposes an MCP server through a JavaScript or Python handler gets new alerts. The alerts appear on the next scan.
An engineer running code scanning now sees agent-reachable code on
the same risk list as the public HTTP routes. A Rust project with
serde_json::from_slice on user bytes gets a direct alert. A JDK
on an air-gapped runner is patched by upgrading the CodeQL bundle
rather than a separate step. The team setting the scan policy has
new queries to turn on. The team writing code has new rules it must
respect.
Source
CodeQL 2.27.5/6 improves precision and updates bundled JDK, GitHub Changelog
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.


