Text of codeql.github.com › docs › codeql-overview › codeql-changelog › codeql-cli-2.11.0 as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

CodeQL 2.11.0 (2022-09-28) — CodeQL

CodeQL » CodeQL overview » CodeQL change logs » CodeQL 2.11.0 (2022-09-28) ¶ This is an overview of changes in the CodeQL CLI and relevant CodeQL query and library packs. For additional updates on changes to the CodeQL code scanning experience, check out the code scanning section on the GitHub blog , relevant GitHub Changelog updates , changes in the CodeQL extension for Visual Studio Code , and the CodeQL Action changelog .

Security Coverage ¶ CodeQL 2.11.0 runs a total of 353 security queries when configured with the Default suite (covering 148 CWE). The Extended suite enables an additional 109 queries (covering 30 more CWE). 4 security queries have been added with this release. CodeQL CLI ¶ Deprecations ¶ The CodeQL CLI now uses Python 3 to extract both Python 2 and Python 3 databases. Correspondingly, support for using Python 2 to extract Python databases is now deprecated.

Starting with version 2.11.3, you will need to install Python 3 to extract Python databases. Miscellaneous ¶ The build of Eclipse Temurin OpenJDK that is bundled with the CodeQL CLI has been updated to version 17.0.4. Query Packs ¶ Bug Fixes ¶ JavaScript/TypeScript ¶ Fixed a bug in the js/type-confusion-through-parameter-tampering query that would cause it to ignore sanitizers in branching conditions. The query should now report fewer false positives.

Minor Analysis Improvements ¶ C/C++ ¶ Modernizations from “Cleartext storage of sensitive information in buffer” ( cpp/cleartext-storage-buffer ) have been ported to the “Cleartext storage of sensitive information in file” ( cpp/cleartext-storage-file ), “Cleartext transmission of sensitive information” ( cpp/cleartext-transmission ) and “Cleartext storage of sensitive information in an SQLite database” ( cpp/cleartext-storage-database ) queries.

These changes may result in more correct results and fewer false positive results from these queries. The alert message of many queries have been changed to make the message consistent with other languages. C# ¶ A new extractor option has been introduced for disabling CIL extraction. Either pass -Ocil=false to the codeql CLI or set the environment variable CODEQL_EXTRACTOR_CSHARP_OPTION_CIL=false . The alert message of many queries have been changed to make the message consistent with other languages.

Golang ¶ The alert message of many queries have been changed to make the message consistent with other languages. Java/Kotlin ¶ The Java extractor now populates the Method relating to a MethodAccess consistently for calls using an explicit and implicit this qualifier. Previously if the method foo was inherited from a specialised generic type ParentType<String> , then an explicit call this.foo() would yield a MethodAccess whose getMethod() accessor returned the bound method ParentType<String>.foo , whereas an implicitly-qualified foo() MethodAccess ‘s getMethod() would return the unbound method ParentType.foo .

Now both scenarios produce a bound method. This means that all data-flow queries may return more results where a relevant path transits a call to such an implicitly-qualified call to a member method with a bound generic type, while queries that inspect the result of MethodAccess.getMethod() may need to tolerate bound generic methods in more circumstances. The queries java/iterator-remove-failure , java/non-static-nested-class , java/internal-representation-exposure , java/subtle-inherited-call and java/deprecated-call have been amended to properly handle calls to bound generic methods, and in some instances may now produce more results in the explicit- this case as well.

Added taint model for arguments of java.net.URI constructors to the queries java/path-injection and java/path-injection-local . Added new sinks related to Android’s AlarmManager to the query java/android/implicit-pendingintents . The alert message of many queries have been changed to make the message consistent with other languages. JavaScript/TypeScript ¶ Improved how the JavaScript parser handles ambiguities between plain JavaScript and dialects such as Flow and E4X that use the same file extension.

The parser now prefers plain JavaScript if possible, falling back to dialects only if the source code can not be parsed as plain JavaScript. Previously, there were rare cases where parsing would fail because the parser would erroneously attempt to parse dialect-specific syntax in a regular JavaScript file. The js/regexp/always-matches query will no longer report an empty regular expression as always matching, as this is often the intended behavior.

The alert message of many queries have been changed to make the message consistent with other languages. Python ¶ The alert message of many queries have been changed to make the message consistent with other languages. Ruby ¶ The rb/unsafe-deserialization query now includes alerts for user-controlled data passed to Hash.from_trusted_xml , since that method can deserialize YAML embedded in the XML, which in turn can result in deserialization of arbitrary objects.

The alert message of many queries have been changed to make the message consistent with other languages. New Queries ¶ C/C++ ¶ Added a new medium-precision query, cpp/missing-check-scanf , which detects scanf output variables that are used without a proper return-value check to see that they were actually written. A variation of this query was originally contributed as an experimental query by @ihsinme . Java/Kotlin ¶ The query “Server-side template injection” ( java/server-side-template-injection ) has been promoted from experimental to the main query pack.

This query was originally submitted as an experimental query by @porcupineyhairs . Added a new query, java/android/backup-enabled , to detect if Android applications allow backups. Ruby ¶ Added a new query, rb/hardcoded-data-interpreted-as-code , to detect cases where hardcoded data is executed as code, a technique associated with backdoors. Query Metadata Changes ¶ Golang ¶ Added the security-severity tag and CWE tag to the go/insecure-hostkeycallback query.

Java/Kotlin ¶ Removed the @security-severity tag from several queries not in the Security/ folder that also had missing security tags. Python ¶ Added the security-severity tag the py/redos , py/polynomial-redos , and py/regex-injection queries. Language Libraries ¶ Bug Fixes ¶ C/C++ ¶ Fixed an issue in the taint tracking analysis where implicit reads were not allowed by default in sinks or additional taint steps that used flow states.

C# ¶ Fixed an issue in the taint tracking analysis where implicit reads were not allowed by default in sinks or additional taint steps that used flow states. Java/Kotlin ¶ Fixed an issue in the taint tracking analysis where implicit reads were not allowed by default in sinks or additional taint steps that used flow states. Python ¶ Fixed an issue in the taint tracking analysis where implicit reads were not allowed by default in sinks or additional taint steps that used flow states.

Ruby ¶ Fixed an issue in the taint tracking analysis where implicit reads were not allowed by default in sinks or additional taint steps that used flow states. Breaking Changes ¶ Java/Kotlin ¶ The Member.getQualifiedName() predicate result now includes the qualified name of the declaring type. JavaScript/TypeScript ¶ Many library models have been rewritten to use dataflow nodes instead of the AST. The types of some classes have been changed, and these changes may break existing code.

Other classes and predicates have been renamed, in these cases the old name is still available as a deprecated feature. The basetype of the following list of classes has changed from an expression to a dataflow node, and thus code using these classes might break. The fix to these breakages is usually to use asExpr() to get an expression from a dataflow node, or to use .flow() to get a dataflow node from an expression.

DOM.qll#WebStorageWrite CryptoLibraries.qll

The rest of this page is on the live site.