A glowing cybersecurity pipeline scans code and dependencies, validates versions, and securely deploys software while blocking a bug.
If you manage CI/CD pipelines, write production code, or spend your mornings triaging GitHub code scanning alerts, the quiet two-step release of CodeQL 2.27.5 and CodeQL 2.27.6 deserves a closer look than a quick skim of a release feed. Originally shipped to the CLI on November 19 and November 24, 2026—and wrapped together in a broader GitHub Changelog announcement on December 4—this pair of updates tackles two very different kinds of security headaches. Version 2.27.5 sharpens CodeQL's static analysis across eight languages while introducing data-flow tracking for Model Context Protocol (MCP) servers. Version 2.27.6, meanwhile, swaps out the CLI's bundled Java runtime to defuse Java4Shell (CVE-2026-114938) before a security scanner becomes an attack surface of its own.

Together, both releases keep CodeQL's Default security suite at 499 queries spanning 169 CWE categories, backed by 131 additional queries covering 32 more CWE categories in the Extended suite. Numbers alone never tell the whole story in static analysis, though. Adding one new Rust query and refining dozens of taint-tracking rules means teams upgrading their pipelines can expect shifts in both true positives and false positives—even if their own source code hasn't changed a single line.

A glowing cybersecurity pipeline scans code and dependencies, validates versions, and securely deploys software while blocking a bug. CodeQL 2.27.6 and the Java4Shell (CVE-2026-114938) Runtime Fix​

Static analysis tools have a funny habit of escaping the same scrutiny developers apply to production web servers, right up until a runtime vulnerability hits the toolchain itself. In CodeQL 2.27.6, GitHub updated the Java Development Kit bundled inside the CodeQL CLI to Eclipse Temurin jdk-25.0.5.1+2 and configured the Java extractor to disable HotSpot Base64 intrinsics whenever it launches with that bundled JDK.

Why Java4Shell Triggered an Urgent Toolchain Update​

Disclosed publicly on November 17, 2026 by security firm Calif—alongside coordinated patches from Oracle and the OpenJDK Vulnerability Group—CVE-2026-114938 ("Java4Shell") is an integer underflow and heap out-of-bounds write (CWE-122 in the NVD record; Red Hat files the same flaw as CWE-787) inside HotSpot's AVX-512-accelerated Base64 decoder (generate_base64_decodeBlock), reachable through java.util.Base64.Decoder. When a short malformed padded Base64 input (Calif's example is 64 A characters plus a padding sign, 65 characters total; OpenJDK 17 needs 128 A characters plus padding because its fast-path threshold is higher) hits that machine-code routine, a decoded-size counter decrements past zero, overflowing roughly 62 bytes past the destination buffer on the Java heap.

Before anyone hits the panic button on every Java binary in the building, industry advisories offer some welcome nuance:

  • Three specific conditions must align: According to CrowdStrike and Red Hat, exploitation requires an affected OpenJDK 17 (17.0.6 or later), 21, 25, or 27 build, an x86-64 processor supporting AVX-512 VBMI instructions (such as modern Intel Xeon server chips), and untrusted Base64 input reaching the decoder. Standard OpenJDK 8 and OpenJDK 11 builds and ARM64 servers are not affected, with one exception: Oracle's Java SE 8 Enterprise Performance Pack build 8u511b33-perf is affected (fixed in 8u513-perf).
  • Severity ratings diverge—and exploitability is nuanced: Oracle scored the flaw 8.1 (High) under CVSS 3.1, Calif scored it 9.2 under CVSS 4.0, and Red Hat rated it 9.8 (Critical) under CVSS 3.0. Yet VulnCheck's technical breakdown notes that the narrow ~62-byte heap overwrite makes reliable remote code execution considerably harder in practice than the "4Shell" nickname implies, even though working lab exploits have been demonstrated against default configurations of several Java platforms.
  • Belt-and-suspenders mitigation in CodeQL: Adoptium's November 2026 advisory lists Temurin 25.0.5.1+2 as a patched JDK 25 build and recommends -XX:-UseBASE64Intrinsics as a startup stopgap when immediate upgrades aren't possible. CodeQL 2.27.6 takes both precautions at once for its Java extractor when using the bundled runtime.

The Crucial Catch for Windows and Enterprise IT Teams​

Upgrading CodeQL to 2.27.6 protects the CodeQL CLI's own embedded JVM, and nothing else. It does not patch standalone Java runtimes installed on Windows developer workstations, self-hosted Azure DevOps or GitHub Actions runners, or production application servers. As VulnCheck notes, downstream OpenJDK distributions—including Microsoft Build of OpenJDK, Eclipse Temurin, Amazon Corretto, Azul Zulu, and Oracle Java SE—share the affected HotSpot code. Administrators still need to inventory standalone JDKs and container images separately, apply vendor patches (such as Temurin 17.0.21.1+2, 21.0.13.1+2, 25.0.5.1+2, or 27.0.1.1+4), and restart running JVM processes so the patched binaries actually take effect.

Section summary: CodeQL 2.27.6 mitigates Java4Shell inside the scanner's bundled runtime by moving to Temurin jdk-25.0.5.1+2 and disabling HotSpot Base64 intrinsics, but organizations must still patch and restart external Java runtimes separately.


Tracking AI Agent Boundaries: MCP Threat Modeling in CodeQL 2.27.5​

AI coding assistants and agentic workflows have spent 2026 turning the Model Context Protocol (MCP) into the universal adapter for wiring large language models into local files, APIs, and enterprise tools. The catch? Whenever an LLM chooses what arguments to feed a local tool handler, that input crosses a trust boundary that looks suspiciously like user-controlled—or prompt-injected—data.

CodeQL 2.27.5 addresses this directly by adding MCP data-flow models for both JavaScript/TypeScript (covering @modelcontextprotocol/sdk, @modelcontextprotocol/server, and fastmcp on npm) and Python (covering the official mcp package and fastmcp on PyPI).

  • Opt-in ai threat model: When enabled, CodeQL treats model-generated arguments passed into MCP tool, resource, and prompt callbacks—plus low-level Server request handlers in JavaScript/TypeScript—as untrusted taint sources. In Python, CodeQL explicitly excludes the SDK-injected Context parameter from being flagged as an ai source, avoiding needless noise on internal framework plumbing.
  • Separate remote threat model: Standard network inputs remain cleanly separated. In JavaScript and TypeScript, request headers and bearer tokens passed to MCP callbacks act as remote sources. In Python, HTTP headers read via fastmcp's get_http_headers() or get_http_request(), along with bearer tokens received by verify_token and get_access_token(), are modeled under remote.

That separation between ai and remote is a thoughtful design choice. Because ai is opt-in, existing repositories won't suddenly drown in alerts overnight unless security teams deliberately enable it. Once enabled, however, developers building MCP servers—especially those running locally on Windows desktops with filesystem or shell access—gain an automated sanity check on whether LLM-generated parameters can wander straight into a file write, database query, or command execution sink.


Language and Query Refinements Across the Stack​

Beyond AI tooling, CodeQL 2.27.5 ships a broad slate of language-library and query updates aimed at closing real blind spots while trimming nagging false positives.

LanguageKey Additions & Behavioral Shifts in CodeQL 2.27.5Practical Impact for Developers
RustNew rust/unsafe-deserialization query; expanded rust/access-after-lifetime-ended pointer trackingFlags deserialization of untrusted input and catches more stale struct-field pointers via std::ptr::addr_of! and addr_of_mut!.
JavaScript / TypeScriptZod schema flow tracking; spawn/execFile shell array sinks; stricter parseInt/parseFloat & regex sanitizer rulesPreserves taint through Zod validation, catches Node.js shell: true command injection, and surfaces missed XSS/injection alerts.
C#Data-flow tracking through property patterns in is expressions and switch casesModern.NET pattern matching no longer drops taint paths mid-method.
Java / KotlinMono<T> taint tracking; case-insensitive crypto checks; normalized URI.getHost() allowlistsCovers reactive Reactor pipelines, stops lowercase/mixed-case cipher names from slipping past weak-crypto rules, and cuts SSRF/redirect noise.
PythonCorrected TarFile.extract / extractall modeling in py/tarslip; await side-effect fixCatches keyword extract(member=...) traversal bugs while stopping false alarms on sanitized extractall and discarded await calls.
GoValue-flow models for non-iter maps functions; shared SSA library migrationImproves standard-library flow precision; requires custom Go query authors to migrate off deprecated SsaVariable APIs.
C / C++Character-type flow in cpp/cleartext-transmission and cpp/cleartext-storage-file; fewer unused-var/scanf false positivesSurfaces more unencrypted credential/data leaks while quieting noise on side-effect initializers and parameter packs.

Why Some Subtle JavaScript and Python Changes Matter Most​

A few under-the-hood adjustments in CodeQL 2.27.5 deserve extra attention because they correct assumptions developers make every day:

  • Schema validation is not sanitization: By following taint through Zod's parse, safeParse, parseAsync, and safeParseAsync, CodeQL acknowledges an uncomfortable truth: confirming that an incoming JSON field is a string doesn't magically make it safe to drop into a shell command or SQL statement.
  • Node.js shell: true pitfalls on Windows and Linux: Command injection queries (js/command-line-injection and js/shell-command-constructed-from-input) now flag untrusted argument arrays passed to spawn and execFile when shell is enabled—a pattern Windows Node.js developers frequently reach for when invoking .cmd or .bat wrappers—while handling callback-free execFile calls and checking arrays at the execution call site so later mutations don't trigger false alarms.
  • Tighter sanitizer assumptions: CodeQL no longer treats isNaN(parseInt(x)) or isNaN(parseFloat(x)) as proof that an entire string is numeric, because JavaScript's parseInt and parseFloat happily parse a leading number and ignore trailing characters (think "42; rm -rf /"). Similarly, regex checks using multiline (m) or unknown flags anchored with ^ and $ are no longer treated as universal taint sanitizers. Expect these two changes to reveal previously hidden command-injection and reflected-XSS findings.
  • Cross-language noise reduction: Heuristics for sensitive-data detection across JavaScript/TypeScript, Python, Ruby, Swift, and Rust now treat identifiers built around trusted_schema (such as SQLite's set_trusted_schema setting) as non-sensitive, trimming false positives in cleartext-logging alerts.

Section summary: CodeQL 2.27.5 balances sharper detection—like Rust unsafe deserialization, JS/TS isNaN(parseInt(...)) fixes, and C# property-pattern tracking—with targeted false-positive cleanup across Python, Java, C/C++, and sensitive-data heuristics.


Breaking CLI Changes and Deployment Guidance for Admins​

If you rely on GitHub-hosted code scanning on github.com, GitHub deploys new CodeQL releases automatically, so you don't have to lift a finger to get 2.27.5 and 2.27.6. For enterprise environments running GitHub Enterprise Server (GHES), GitHub notes that this functionality will ship in a future GHES 3.24 release, while administrators on older GHES versions can manually upgrade their CodeQL bundle ahead of time.

Teams maintaining custom CLI scripts, self-hosted Windows/Linux build agents, or custom QL query packs should check three operational changes introduced in 2.27.5 before bumping their pinned version:

  • Swap Brotli for Zstd in direct C/C++ extractor invocations: The C/C++ extractor has dropped Brotli compression support entirely. Any script passing --trap-compression=brotli or --tar-entry-compression=brotli must switch to the corresponding zstd flag, and --brotli-quality must be removed.
  • Audit custom Go queries for SSA API deprecations: GitHub migrated CodeQL's Go SSA library to shared SsaDefinition classes, deprecating SsaVariable and removing methods like SsaDefinition.getAFirstUse() and getVariable(). Built-in queries already work seamlessly, but custom in-house Go queries will need refactoring.
  • Note test-runner symlink and .qlref behavior: During codeql test run, XML, YAML, and Java .properties extractors running in source-root traversal mode no longer follow symbolic links—a welcome security hardening fix—while --consistency-queries now respects .qlref precedence alongside standard unit tests. Also keep in mind that startsWith, endsWith, and contains are now built-in case-sensitive literal member predicates on QL's string type.

Upgrading static analysis engines is always a balancing act between catching real risks early and keeping developer alert fatigue under control. By pairing high-signal modeling for emerging AI/MCP workloads and Rust memory/deserialization hazards with a timely Temurin JDK update against Java4Shell, CodeQL 2.27.5 and 2.27.6 give engineering and AppSec teams a straightforward reason to update—provided they remember to patch their standalone Java runtimes right alongside their scanners.


Correction (December 4, 2026): An earlier version of this article described the Java4Shell trigger as malformed Base64 input longer than 128 bytes; Calif's disclosure gives a 65-character example (64 A characters plus padding), with the 128-character length applying only to OpenJDK 17. The article also cited CWE-787 alone; the NVD record lists CWE-122, while Red Hat files the same flaw as CWE-787. Finally, while standard OpenJDK 8 and 11 builds are unaffected, Oracle's Java SE 8 Enterprise Performance Pack build 8u511b33-perf is affected.

 

References

  1. CodeQL 2.27.5/6 improves precision and updates bundled JDK GitHub Changelog 2026-12-04T09:57:29+00:00
  2. redhat.com access.redhat.com
  3. Eclipse Temurin guidance for CVE-2026-114938 "java4shell" | Adoptium adoptium.net