← English news
Priority 4/5

CodeQL 2.26.0 Adds Kotlin 2.4.0 Support and AI Prompt Injection Detection for SDKs

The latest CodeQL release enhances static analysis capabilities with updated Kotlin support and specialized detection for prompt injection vulnerabilities in popular generative AI SDKs.

CodeQL 2.26.0 Adds Kotlin 2.4.0 Support and AI Prompt Injection Detection for SDKs

GitHub has released CodeQL 2.26.0, updating its static analysis engine to support Kotlin versions up to 2.4.0. This release introduces significant security scanning capabilities aimed at modern application architectures, specifically targeting security issues found in applications integrating generative AI models.

Primary source

Open GitHub Changelog ↗

This article summarizes the source. Check the original for full details and conditions.

Comparison

AspectBefore / AlternativeAfter / This
Kotlin Language SupportSupported versions prior to Kotlin 2.4.0Full support extended up to Kotlin 2.4.0
AI Prompt Injection DetectionNo built-in sinks for OpenAI, Anthropic, or Google GenAI SDKs in JavaScript/TypeScriptDetects untrusted input reaching system prompts, legacy prompts, and realtime instructions
C# Razor Pages SupportRazor Page handler methods not recognized as remote flow sourcesIdentifies OnGet and OnPost handlers as sources to trace vulnerabilities like SQL injection
Go Logging AnalysisLimited coverage for the standard log/slog packageModeled log/slog packages to accurately detect log injection vulnerabilities

Action Checklist

  1. Verify the active CodeQL version in your CI/CD pipelines Ensure your runner is utilizing CodeQL engine version 2.26.0 or higher.
  2. Review JavaScript/TypeScript codebases utilizing AI SDKs Pay close attention to OpenAI Realtime sessions, Anthropic completions, or Google GenAI instructions.
  3. Check C# projects for Razor Page handler method vulnerabilities Run scans on OnGet and OnPost handlers that handle direct user input.
  4. Enable log injection checks in Go applications The log/slog package is now covered in default telemetry and security configurations.