MC-BARS.COMDomains · SSL · HTTPS · Guides
News / Development and AI
Development and AI

CodeQL 2.27.4 improves analysis accuracy and changes query metadata

GitHub released CodeQL 2.27.4 — an update to the static analyzer used in GitHub code scanning to detect security issues in code. The new version adjusts queries for Java, Rust, C++, and path checks; it also changes CWE tags for a number of queries and CLI behavior when outputting messages and building packages.

Original source: GitHub Changelog · Original date: 2026-11-04 · Overview published: 2026-11-06
Illustration on Development and AI

Java and path queries account for more sanitization operations

The java/log-injection query now recognizes additional sanitizers and the associated protective checks. These include functions from the JDK, Apache Commons Lang and Apache Commons Text, Guava, OWASP Java Encoder, and Spring Framework. This allows the analyzer to account for more ways data may be processed before being used in a context checked by this query. Changes also affect queries that detect path injection. They now recognize additional substring checks, as well as string replacement and removal operations from Apache Commons Lang and Guava. GitHub’s announcement does not list specific identifiers for these queries or individual scenarios, so the update is described at the level of a group of checks. In both cases, the changes expand the set of recognized protective constructs rather than adding new libraries to the application.

Fewer false positives in Rust and C++

Three Rust queries have been updated: rust/uncontrolled-allocation-size, rust/log-injection, and rust/cleartext-logging. GitHub says the number of false positives for these queries has been reduced. The brief release description does not provide details about the specific code patterns that changed. In C++, the cpp/suspicious-pointer-scaling query no longer reports intentional pointer arithmetic for std::byte* buffers. This refinement applies specifically to this case and does not mean that pointer checks have been disabled entirely. Two other C++ queries have also been changed for variables with the [[maybe_unused]] attribute. cpp/unused-local-variable and cpp/unused-static-variable no longer flag such variables as unused. Thus, version 2.27.4 adjusts analysis results for explicitly annotated code and valid arithmetic with std::byte*, without changing the overall status of these checks in GitHub’s announcement.

CWE-730 tag removed from a number of queries

CodeQL has stopped adding CWE-730 to several queries related to regular expressions and input handling. In Java and Kotlin, these are java/redos, java/polynomial-redos, and java/regex-injection. For JavaScript and TypeScript, the changes affect js/redos, js/polynomial-redos, js/regex-injection, js/regex-injection-more-sources, js/server-crash, and js/loop-bound-injection. In Python, the tag has been removed from py/redos, py/polynomial-redos, and py/regex-injection. In Ruby, it has been removed from rb/redos, rb/polynomial-redos, and rb/regexp-injection. In Swift, it has been removed from swift/redos and swift/regex-injection. This change concerns query metadata: the announcement specifically says that the CWE-730 tag was removed. GitHub does not say that the listed queries have been removed or have stopped running checks. The question of the tag had previously been raised in CodeQL issue #22318; in its announcement, GitHub thanked user @wiggin15 for the feedback.

CLI separates JVM messages from machine output

The CodeQL command line now directs Java virtual machine warnings and initialization errors to standard error. Previously, such messages could appear in output intended for JSON or another machine-readable format. They are now output separately so they do not interfere with processing by programs that expect data in a specified format. This change applies specifically to JVM warnings and initialization errors, not to all CLI messages. The brief release description also does not specify whether the format of the analysis results themselves has changed. GitHub describes the practical purpose of the fix as protecting machine-readable output from unrelated messages: JSON consumers can process the data more easily when diagnostic text is directed to a separate stream.

CLI checks symbolic links when packaging

When building or publishing a package, the CLI now checks the location of each file after resolving symbolic links. If a link points outside the package root directory, the file is not included and the CLI displays a warning. The check applies to both operations—packaging and publishing. GitHub’s announcement does not provide additional settings for this check or describe changes to the package structure. It only states that files resolving outside the root are excluded and the user receives a warning. This is a separate CLI change from the query adjustments, intended to ensure that package preparation accounts for the actual paths referenced by symbolic links.

The update is available in GitHub code scanning

According to GitHub, new versions of CodeQL are deployed automatically for GitHub code scanning users on github.com. The functionality in version 2.27.4 will also be included in the GitHub Enterprise Server 3.24 release. For older GHES versions, GitHub indicates that CodeQL can be updated manually. Thus, the release combines changes to the accuracy of individual queries, metadata fixes, and command-line updates. The brief announcement lists the affected checks and CLI behavior, while more detailed technical explanations are provided in the full CodeQL 2.27.4 changelog.

All news

IP Geolocation by DB-IP