Allison introduces CodeQL 2.22.4, describing new language support, advanced security queries, and accuracy improvements for developers leveraging GitHub code scanning.

CodeQL 2.22.4 Adds Go 1.25 Support and Accuracy Improvements

CodeQL, the static analysis engine powering GitHub code scanning, continues to support developers in detecting and remediating security issues within their codebases. The latest release, CodeQL 2.22.4, delivers several noteworthy improvements:

Language & Framework Support

  • Go: Now supports Go version 1.25, expanding compatibility for Go projects.
  • Rust: Improved analysis thanks to enhanced models for commonly used database libraries, such as postgres, rusqlite, sqlx, and tokio-postgres, with a focus on detecting SQL injection and cleartext storage vulnerabilities.
  • Java/Kotlin: New library models for jakarta.servlet.ServletRequest and jakarta.servlet.http.HttpServletRequest expand remote flow source detection, improving security query depth.

Security Query Changes

  • Rust: Added a rust/cleartext-storage-database query, designed to catch instances of sensitive data storage in plaintext within databases.
  • C/C++: Addressed false positives in the cpp/overflow-buffer query involving reference types for class/struct buffers.
  • JavaScript/TypeScript: The js/regex-injection query now ignores environment variables as sources by default, refining detection quality.

Deployment & Upgrade Notes

  • CodeQL 2.22.4 is automatically rolled out for users of GitHub code scanning on github.com.
  • The release is also included in GitHub Enterprise Server (GHES) version 3.19.
  • Users operating older GHES versions may manually upgrade CodeQL as outlined in the documentation.

Further Reading

For a complete breakdown of the changes in this release, see the full CodeQL 2.22.4 changelog.


These updates help developers and security teams keep their code safe and aligned with recent language and framework updates.

This post appeared first on “The GitHub Blog”. Read the entire article here