cd /news/ai-tools/codeql-2-27-5-6-improves-precision-a… · home › topics › ai-tools › article
[ARTICLE · art-181712] src=blog.github.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

CodeQL 2.27.5/6 improves precision and updates bundled JDK

GitHub released CodeQL 2.27.5 and 2.27.6, with 2.27.5 adding a new rust/unsafe-deserialization query and, under the `ai` threat model, tracking model-generated arguments to tool, resource, and prompt handlers in the official MCP SDKs and `fastmcp` for 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`) and disables HotSpot Base64 intrinsics in the Java extractor when the bundled JDK is used. GitHub automatically deploys each new CodeQL version to GitHub code scanning users on github.com, and a future GitHub Enterprise Server `3.24` release will include the functionality.

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.

read2 min views2 publishedDec 4, 2026
CodeQL 2.27.5/6 improves precision and updates bundled JDK
Image: Blog (auto-discovered)

CodeQL is the static analysis engine behind GitHub code scanning, 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 #

  • JavaScript/TypeScript and Python: If you enable theai threat model, CodeQL now tracks model-generated arguments to tool, resource, and prompt handlers in the official MCP SDKs andfastmcp . Theremote threat model tracks request headers and bearer tokens separately.
  • JavaScript/TypeScript: CodeQL now follows data from the input of Zod'sparse ,safeParse , and their asynchronous variants to the parsed result.
  • Java/Kotlin: CodeQL now tracks untrusted data through Reactor'sMono<T> .
  • C#: CodeQL now follows data through property patterns inis expressions andswitch cases.
  • Go: CodeQL now tracks values throughmaps functions that don't useiter .

Query changes #

  • Rust: The newrust/unsafe-deserialization query detects code that deserializes user-controlled data. Therust/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 tospawn orexecFile 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 toTarFile.extract . It no longer flagsTarFile.extractall(path, members) when the caller has sanitizedmembers .
  • C/C++:cpp/cleartext-transmission andcpp/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 and the CodeQL 2.27.6 changelog. 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.

── more in #ai-tools 4 stories · sorted by recency
── more on @github 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/codeql-2-27-5-6-impr…] indexed:0 read:2min 2026-12-04 · —