CodeQL 2.25.3 adds Swift 6.3 support
Source: GitHub Changelog
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++
- Added
AllocationFunctionmodels foraligned_alloc,std::aligned_alloc, andbsl::aligned_alloc.
Query changes
C/C++
We’ve promoted five queries to high precision 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 withsizeof.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#
- Updated
cs/useless-tostring-callto avoid false positives in calls toStringBuilder.AppendLineand in calls of the formbase.ToString(), and refined the alert message.
JavaScript/TypeScript
js/missing-rate-limitingnow accounts for Fastify per‑route rate limiting.
Python
py/bind-socket-all-network-interfacesnow uses the global data‑flow library, improving precision and yielding more results. The query also recognizes wrappers ofsocket.socketin theeventletandgeventlibraries as socket‑binding operations.
GitHub Actions
- Improved alert messages and source locations for
actions/artifact-poisoning/criticalandactions/artifact-poisoning/medium, making alerts easier to understand and aligning them with similar queries that report on potentially untrusted artifacts. actions/missing-workflow-permissionsno longer produces false positives on reusable workflows where all callers set permissions.- 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.