CodeQL 2.25.3 adds Swift 6.3 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.25.3, which adds support for Swift 6.3, promotes five C/C++ queries to the default code scanning query suite, and includes various accuracy improvements across languages.
Language and framework support
Swift
- CodeQL now supports analysis of apps built with Swift 6.3.
Python
- The Python extractor now supports the new
lazy import ...andlazy from ... import ...syntax defined in PEP-810, which is part of Python 3.15.
Java/Kotlin
- The
java/xxeandjava/xxe-localqueries now detect sinks in the Woodstox StAX library, including direct uses ofcom.ctc.wstx.stax.WstxInputFactoryandorg.codehaus.stax2.XMLInputFactory2.
C/C++
- We’ve added
AllocationFunctionmodels foraligned_alloc,std::aligned_alloc, andbsl::aligned_alloc.
Query changes
C/C++
- We’ve promoted five queries to
highprecision and added them to the default code scanning query suite:cpp/comparison-with-wider-type(Comparison of narrow type with wide type in loop condition).cpp/integer-multiplication-cast-to-long(Multiplication result converted to larger type).cpp/suspicious-add-sizeof(Suspicious add with sizeof).cpp/wrong-type-format-argument(Wrong type of arguments to formatting function).cpp/implicit-function-declaration(Implicit function declaration). Forbuild-mode: nonedatabases, this query no longer produces results, since they were noisy and imprecise.
C#
- We’ve updated the
cs/useless-tostring-callquery to avoid false positives in calls toStringBuilder.AppendLineand in calls of the formbase.ToString(), and we’ve made the alert message more precise.
JavaScript/TypeScript
- The
js/missing-rate-limitingquery now accounts for Fastify per-route rate limiting.
Python
- The
py/bind-socket-all-network-interfacesquery now uses the global data-flow library, leading to better precision and more results. The query also recognizes wrappers ofsocket.socketin theeventletandgeventlibraries as socket binding operations.
GitHub Actions
- We’ve improved the alert messages and source locations for the
actions/artifact-poisoning/criticalandactions/artifact-poisoning/mediumqueries, making alerts easier to understand and aligning them with similar queries that report on potentially untrusted artifacts. - The
actions/missing-workflow-permissionsquery no longer produces false positives on reusable workflows where all callers set permissions. - We’ve removed false positive injection sink models for the
contextinput ofdocker/build-push-actionand theallowed-endpointsinput ofstep-security/harden-runner.
For a full list of changes, please refer to the complete changelog for version 2.25.3. Every new version of CodeQL is automatically deployed to users of GitHub code scanning on github.com. The new functionality in CodeQL 2.25.3 will also be included in GitHub Enterprise Server (GHES) 3.22 release. If you use an older version of GHES, you can manually upgrade your CodeQL version.