CodeQL 2262 Arrives With Stronger Security Intelligence, New Swift and Kotlin Support, and Deeper Vulnerability Detection + Video

Listen to this Post

Featured ImageIntroduction: A New Era of Smarter Code Security Analysis

Modern software development has become a race between innovation and security. As applications grow more complex, developers rely on advanced security tools to discover weaknesses before attackers can exploit them. Static analysis has become one of the most important defenses in this battle, helping organizations identify risky code patterns, insecure dependencies, and hidden vulnerabilities throughout the software development lifecycle.

GitHub has released CodeQL 2.26.2, a major update to the security analysis engine powering GitHub code scanning. The new release expands programming language support, improves vulnerability detection accuracy, strengthens GitHub Actions security analysis, and introduces important query behavior changes designed to uncover more potential security risks.

The update brings support for Swift 6.3.3 and Kotlin 2.4.10, while refining detection capabilities for path injection, URL redirection issues, Zip Slip vulnerabilities, and unsafe workflow configurations. Although some changes may generate additional security findings, they represent a deeper improvement in identifying dangerous patterns that previous versions could miss.

CodeQL 2.26.2 Expands Language Support for Modern Applications
Swift 6.3.3 Support Improves Apple Platform Security Analysis

One of the most important additions in CodeQL 2.26.2 is support for applications built using Swift 6.3.3.

Swift continues to grow as a major programming language for Apple platforms, powering applications across iOS, macOS, watchOS, and other Apple ecosystems. With this update, security teams can analyze newer Swift applications using CodeQL’s advanced static analysis capabilities.

This improvement allows developers to identify potential vulnerabilities earlier in the development process, especially in large-scale applications where manual security reviews become increasingly difficult.

Kotlin 2.4.10 Support Strengthens Android and JVM Security

Better Protection for Java and Kotlin-Based Applications

CodeQL 2.26.2 also introduces support for Kotlin versions up to 2.4.10.

Kotlin has become a dominant language for Android development and is increasingly used in enterprise backend systems running on the Java Virtual Machine. By expanding Kotlin compatibility, CodeQL helps organizations maintain stronger security coverage across modern application stacks.

Security teams can now scan newer Kotlin projects while benefiting from improved vulnerability detection rules and updated query behavior.

Improved Detection for Path Injection Vulnerabilities

CodeQL Removes Unsafe Sanitizer Assumptions

One of the major security improvements in CodeQL 2.26.2 involves path injection detection.

In previous versions, certain functions were considered safe sanitizers even though they could still allow dangerous input manipulation. The latest update removes several of these assumptions, allowing CodeQL to detect more realistic attack scenarios.

For Go applications, the function:

path/filepath.Rel

is no longer treated as a sanitizer for:

go/path-injection

go/zipslip

This change may increase the number of reported findings, but it provides a more accurate security assessment.

Attackers frequently abuse file path manipulation to escape intended directories, access unauthorized files, or overwrite sensitive resources. Improving detection around these weaknesses helps organizations prevent serious filesystem-related attacks.

Java and Kotlin Path Injection Analysis Becomes More Accurate
File Name Processing Is No Longer Considered Fully Safe

CodeQL 2.26.2 also updates Java and Kotlin security analysis.

The method:

java.io.File.getName()

is no longer considered a complete sanitizer for:

java/path-injection

The reason is that extracting a filename does not always eliminate dangerous path components such as:

..

Attackers can sometimes manipulate file paths using traversal sequences to access locations outside the intended directory.

By adjusting the query logic, CodeQL can now detect more cases where developers may unintentionally trust unsafe file input.

Stronger URL Redirection Protection in C Applications

Raw Request Data Receives More Careful Analysis

The update changes how CodeQL handles:

System.Web.HttpRequest.RawUrl

Previously, this value was treated as a sanitizer for:

cs/web/unvalidated-url-redirection

The new release removes that assumption because RawUrl contains the original unnormalized request line.

This means applications using RawUrl for redirect logic may expose additional risks, including:

Open redirect vulnerabilities

Phishing opportunities

Authentication bypass scenarios

Unsafe navigation behavior

The improved query behavior helps developers identify locations where user-controlled URLs require stronger validation.

GitHub Actions Security Receives Additional Improvements

Detecting More Unsafe Workflow Configurations

GitHub Actions has become an essential automation platform for software delivery, but insecure workflows can introduce serious supply chain risks.

CodeQL 2.26.2 updates the:

EnvironmentCheck

logic to focus specifically on non-TOCTOU scenarios.

TOCTOU, meaning Time Of Check To Time Of Use, describes situations where a security check happens before a resource is used, but the resource changes before execution.

The update exposes more results in untrusted checkout queries, helping security teams discover workflow configurations that could allow malicious code execution.

Query Changes Improve Security Accuracy

C Code Quality Query Adjustments

The update removes:

cs/useless-assignment-to-local

from the standard:

code-quality

suite.

However, the query remains available in:

code-quality-extended

This change keeps the default analysis experience focused while allowing teams that want deeper code-quality checks to continue using the extended package.

C and C++ Vulnerability Classification Updated

Better Alignment With CWE Security Standards

CodeQL 2.26.2 updates the:

cpp/new-free-mismatch

query.

The query now uses:

external/cwe/cwe-762

instead of:

external/cwe/cwe-401

This better reflects the actual vulnerability category detected by the query.

Correct classification improves reporting accuracy and helps organizations prioritize security issues based on recognized vulnerability standards.

Breaking Change: Legacy Alert Links Removed

Developers Must Use Modern Placeholder Formatting

CodeQL 2.26.2 introduces a breaking change involving alert message formatting.

The engine no longer parses:

[[

style links inside alert messages.

This undocumented legacy feature allowed query authors to embed links directly inside:

select

clause messages.

Developers should now use:

$@

placeholder pairs for creating links inside security alerts.

Although this may require adjustments for some custom queries, the change creates a cleaner and more consistent alert formatting system.

Automatic Deployment Across GitHub Code Scanning

Easier Access to the Latest Security Improvements

Users of GitHub code scanning on GitHub.com will receive CodeQL 2.26.2 automatically.

The improvements will also become available in a future GitHub Enterprise Server release.

Organizations running older GHES versions can manually upgrade their CodeQL installation to access the latest security analysis capabilities.

This release demonstrates GitHub’s continued investment in automated security intelligence and developer-focused vulnerability prevention.

Deep Analysis: How Security Teams Can Validate CodeQL 2.26.2 Improvements

Checking Installed CodeQL Version

Security teams can verify their local CodeQL installation:

codeql version

Updating CodeQL Database Packs

Update installed query packs:

codeql pack upgrade

Creating a Security Database

Example:

codeql database create my-project-db \n--language=javascript \n--source-root=./my-project

Running Security Queries

Execute analysis:

codeql database analyze my-project-db \ngithub/codeql-security-and-quality

Checking GitHub Actions Security Issues

Review workflow files:

find .github/workflows -type f

Search for unsafe checkout usage:

grep -R "checkout" .github/workflows/

Scanning For Dangerous File Handling

Search project code:

grep -R "File.getName" .

and:

grep -R "filepath.Rel" .

Reviewing CodeQL Results

Export findings:
codeql database analyze \nmy-project-db \n--format=sarif-latest \n--output=results.sarif
What Undercode Say:

CodeQL 2.26.2 represents a significant shift toward more realistic vulnerability detection rather than simply increasing the number of security rules.

The most important part of this release is not only the new language support.

The deeper improvement comes from removing inaccurate assumptions about what developers consider safe.

Security scanners often fail when they trust functions too much.

A function that removes part of an input does not always make that input secure.

Attackers understand these gaps.

Path traversal attacks remain dangerous because developers frequently underestimate how file paths can be manipulated.

A filename extraction function may appear harmless.

A URL parser may appear trustworthy.

A GitHub Actions workflow may appear isolated.

However, attackers combine small weaknesses into larger attack chains.

CodeQL 2.26.2 improves detection by questioning these assumptions.

The Swift 6.3.3 support is important because Apple applications increasingly handle sensitive user data.

The Kotlin 2.4.10 update is equally important because Android applications represent one of the largest software ecosystems worldwide.

Security analysis must evolve alongside programming languages.

The removal of unsafe sanitizers shows a stronger security philosophy.

A security tool should prefer identifying possible risks rather than hiding them behind optimistic assumptions.

More findings do not always mean more problems.

Sometimes more findings mean better visibility.

The GitHub Actions changes are especially relevant because software supply chain attacks continue to target automated build systems.

A compromised workflow can affect thousands of users.

Developers should treat CI/CD pipelines as production infrastructure.

CodeQL improvements also highlight the importance of continuous security testing.

Security cannot be performed only before deployment.

It must exist throughout development.

Organizations should integrate CodeQL into pull requests, development environments, and release pipelines.

The future of application security will depend heavily on automated intelligence combined with developer awareness.

Tools like CodeQL reduce human mistakes by discovering hidden weaknesses before attackers do.

The strongest security teams will not ignore new alerts.

They will investigate them, improve their code, and continuously strengthen their defenses.

CodeQL 2.26.2 is another step toward a future where secure software development becomes a default practice rather than an afterthought.

✅ CodeQL 2.26.2 is a real update that expands Swift and Kotlin support while improving security queries.

✅ The release includes changes affecting path injection, URL redirection, GitHub Actions analysis, and alert formatting.

❌ No evidence indicates that the update introduces a vulnerability. The changes are designed to improve detection accuracy.

Prediction

(+1) CodeQL adoption will continue increasing as organizations prioritize automated application security testing.

More companies will integrate CodeQL into CI/CD pipelines to detect vulnerabilities earlier.

Swift and Kotlin support will improve security coverage for mobile and enterprise applications.

Improved query accuracy will help security teams discover previously hidden risks.

Some organizations may experience alert increases after upgrading because stricter analysis produces more findings.

Developers may need time to update custom queries affected by the breaking alert formatting change.

Final Thoughts: Security Through Better Visibility

CodeQL 2.26.2 is not just another version update. It represents a broader movement toward smarter security analysis.

By supporting modern programming languages and improving vulnerability detection logic, GitHub is helping developers build safer applications in an increasingly complex digital environment.

The biggest security advantage comes from finding weaknesses before attackers discover them. With stronger static analysis, improved GitHub Actions protection, and deeper vulnerability intelligence, CodeQL continues moving software development toward a more secure future.

▶️ Related Video (76% Match):

🕵️‍📝Let’s dive deep and fact‑check.

🎓 Live Courses & Certifications:

Join Undercode Academy for Verified Certifications

🚀 Request a Custom Project:

Secure, high-velocity infrastructure and disruptive technological engineering. Contact our engineering team for high-tier development and proprietary systems:
[email protected]
💎 Smart Architecture | 🛡️ Secure by Design | ⭐ Trusted by Thousands

References:

Reported By: github.blog
Extra Source Hub (Possible Sources for article):
https://www.pinterest.com
Wikipedia
OpenAi & Undercode AI

Image Source:

Unsplash
Undercode AI DI v2

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow UndercodeNews & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin | 🦋BlueSky | 🐘Mastodon | 📺Youtube