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 the
aithreat model, CodeQL now tracks model-generated arguments to tool, resource, and prompt handlers in the official MCP SDKs andfastmcp. Theremotethreat 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
isexpressions andswitchcases. - Go: CodeQL now tracks values through
mapsfunctions that don't useiter.
Query changes #
- Rust: The new
rust/unsafe-deserializationquery detects code that deserializes user-controlled data. Therust/access-after-lifetime-endedquery also detects more invalid accesses through pointers to struct fields. - JavaScript/TypeScript: Command injection queries now flag untrusted arguments passed to
spawnorexecFilewhen 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/tarslipnow 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-transmissionandcpp/cleartext-storage-filenow 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.