CodeQL 2.26.2 adds Swift 6.3.3 and Kotlin 2.4.10 support
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.26.2, which adds support for Swift 6.3.3 and Kotlin 2.4.10, and improves the accuracy of path injection, URL redirection, and GitHub Actions queries.
Language and framework support
Swift: CodeQL now supports analysis of apps built with Swift 6.3.3.
Java/Kotlin: CodeQL now supports Kotlin versions up to 2.4.10.
Query changes
C#
System.Web.HttpRequest.RawUrlis no longer a sanitizer forcs/web/unvalidated-url-redirection, since it contains the unnormalized request line. This may lead to more results.- We’ve removed the
cs/useless-assignment-to-localquery from thecode-qualitysuite. It remains in thecode-quality-extendedsuite.
Go
path/filepath.Relis no longer a sanitizer forgo/path-injectionandgo/zipslip, which may lead to more results.
Java/Kotlin
java.io.File.getName()is no longer a complete sanitizer forjava/path-injection, since it doesn’t remove a..path component. This may lead to more results.
C/C++
- We’ve updated the
cpp/new-free-mismatchquery to use theexternal/cwe/cwe-762tag instead ofexternal/cwe/cwe-401, which better matches the query’s behavior.
GitHub Actions
- We’ve changed the
EnvironmentChecklogic so it only protects against non-TOCTOU scenarios, which surfaces more results in the untrusted checkout queries.
Breaking change
- CodeQL no longer parses
[[-style links in alert messages. This undocumented legacy feature let query authors embed links inline inselectclause message strings. Use$@placeholder pairs instead.
For a full list of changes, please refer to the complete changelog for version 2.26.2. Every new version of CodeQL is automatically deployed to users of GitHub code scanning on github.com. The new functionality in CodeQL 2.26.2 will also be included in a future GitHub Enterprise Server (GHES) release. If you use an older version of GHES, you can manually upgrade your CodeQL version.