CodeQL 2.26.4 improves GitHub actions security detections
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.4, which adds support for Go 1.27, improves alert locations for Rust data flow queries, and includes accuracy improvements across C#, Java/Kotlin, and GitHub Actions.
Go
- CodeQL now supports Go 1.27.
Rust
- Alert locations for data flow queries are now more precise and are based on the actual source and sink nodes. Some alerts will change location, so they’ll appear as new alerts while the previous alerts close.
Java/Kotlin
- We’ve added SQL injection sink models for Spring R2DBC
DatabaseClientand the R2DBC SPI. - Taint now propagates through calls to
String.valueOf(Object)when the argument is aCharSequence(e.g., aStringor aStringBuilder).
JavaScript/TypeScript
- We’ve added support for regular expressions using the
dflag and for the React Native Worklets'worklet'directive.
Python
- We’ve added taint flow through
list.extendandlist.insert, matching the existing taint flow throughlist.append.
C#
- The
cs/web/missing-token-validationquery now recognizes enabled ASP.NET CoreRequireAntiforgeryTokenattributes when antiforgery middleware is used. - The
cs/virtual-call-in-constructorquery no longer reports uses of virtual members innameofexpressions, since they aren’t calls. - The
cs/useless-cast-to-selfandcs/simplifiable-boolean-expressionqueries produce fewer false positives inbuild-mode: nonedatabases.
GitHub Actions
- Checks on actor fields read from the event payload (e.g.,
github.event.pull_request.user.login) now only count as protection for events that actually populate that field. This may produce more alerts for queries that use theControlCheckclass. - The
actions/unpinned-tagquery now detects mutable references to reusable workflows. - You can now specify
EnvironmentCheckthrough a models-as-data model. Queries usingControlCheckmay find more results when an environment is no longer a sufficient sanitizer.
For a full list of changes, please refer to the complete changelog for version 2.26.4. Every new version of CodeQL is automatically deployed to users of GitHub code scanning on github.com. The new functionality in CodeQL 2.26.4 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.