# CodeQL 2.27.5/6 improves precision and updates bundled JDK

> Source: <https://blog.github.com/changelog/2026-12-04-codeql-2-27-5-6-improves-precision-and-updates-bundled-jdk/>
> Published: 2026-12-04 09:57:29+00:00

**Key takeaway:** Enabling CodeQL's `ai` threat model now traces model-generated arguments into MCP tool, resource, and prompt handlers in the official MCP SDKs and `fastmcp` for JavaScript/TypeScript and Python, while the `remote` threat model tracks request headers and bearer tokens separately.

# CodeQL 2.27.5/6 improves precision and updates bundled JDK

CodeQL is the static analysis engine behind [GitHub code scanning](https://docs.github.com/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning-with-codeql), which finds and remediates security issues in your code. We've recently released CodeQL 2.27.5 and 2.27.6. CodeQL 2.27.5 brings detection for unsafe deserialization in Rust and tracks input to Model Context Protocol (MCP) servers in JavaScript, TypeScript, and Python. CodeQL 2.27.6 updates the bundled JDK to Temurin `jdk-25.0.5.1+2` to mitigate Java4Shell (`CVE-2026-114938`). The Java extractor also disables HotSpot Base64 intrinsics when it uses the bundled JDK.

## [Language and framework support](#language-and-framework-support)

- **JavaScript/TypeScript and Python:** If you enable the`ai` threat model, CodeQL now tracks model-generated arguments to tool, resource, and prompt handlers in the official MCP SDKs and`fastmcp` . The`remote` threat model tracks request headers and bearer tokens separately.
- **JavaScript/TypeScript:** CodeQL now follows data from the input of Zod's`parse` ,`safeParse` , and their asynchronous variants to the parsed result.
- **Java/Kotlin:** CodeQL now tracks untrusted data through Reactor's`Mono<T>` .
- **C#:** CodeQL now follows data through property patterns in`is` expressions and`switch` cases.
- **Go:** CodeQL now tracks values through`maps` functions that don't use`iter` .

## [Query changes](#query-changes)

- **Rust:** The new`rust/unsafe-deserialization` query detects code that deserializes user-controlled data. The`rust/access-after-lifetime-ended` query also detects more invalid accesses through pointers to struct fields.
- **JavaScript/TypeScript:** Command injection queries now flag untrusted arguments passed to`spawn` or`execFile` when the call enables a shell.
- **Java/Kotlin:** Weak cryptography queries now recognize algorithm names and modes regardless of capitalization. The server-side request forgery and URL redirection queries also recognize checks against a fixed collection of allowed hosts, even when code converts the hostname to upper or lower case.
- **Python:**`py/tarslip` now flags untrusted archive members passed by keyword to`TarFile.extract` . It no longer flags`TarFile.extractall(path, members)` when the caller has sanitized`members` .
- **C/C++:**`cpp/cleartext-transmission` and`cpp/cleartext-storage-file` now track sensitive data through character types, so they can detect more cases of cleartext transmission and storage.

For full details, see the [CodeQL 2.27.5 changelog](https://codeql.github.com/docs/codeql-overview/codeql-changelog/codeql-cli-2.27.5/) and the [CodeQL 2.27.6 changelog](https://codeql.github.com/docs/codeql-overview/codeql-changelog/codeql-cli-2.27.6/). GitHub automatically deploys every new CodeQL version to users of GitHub code scanning on github.com. A future GitHub Enterprise Server (GHES) `3.24` release will also include this functionality. If you use an older version of GHES, you can [manually upgrade your CodeQL version](https://docs.github.com/enterprise-server@3.22/admin/managing-code-security/managing-github-advanced-security-for-your-enterprise/configuring-code-scanning-for-your-appliance#configuring-codeql-analysis-on-a-server-without-internet-access).
