# CodeQL

> GitHub's semantic code analysis engine for finding vulnerabilities

Source: https://talira.ai/catalog/codeql-8rqre4qe
Every listing: https://talira.ai/catalog.md

- Kind: Commercial software
- Types: Command-line tool, Library
- Categories: [security / static analysis](https://talira.ai/categories/security/static-analysis)
- Platforms: linux, macos, windows[^4]
- Licence: GitHub CodeQL Terms and Conditions[^1]
- Pricing: Free tier, from $30/month[^2][^3]
- Pricing notes: Free for academic research and open source codebases. GitHub Code Security, for private code, is $30 per active committer a month.
- Free tier: yes[^2][^3]
- Self-hostable: yes[^3]
- Cloud hosted: yes[^2]
- Made by: [GitHub](https://talira.ai/orgs/github.md)
- Funding: acquired by Microsoft (2018)[^5]

CodeQL is GitHub's semantic code analysis engine: it builds a database from a codebase and lets you query the code as though it were data, writing queries in its QL language that find every variant of a vulnerability through data flow and taint tracking. It covers C and C++, C#, Go, Java and Kotlin, JavaScript and TypeScript, Python, Ruby, Rust, Swift and GitHub Actions workflows. The CodeQL CLI and the VS Code extension run queries locally, and the standard queries and libraries are open source under MIT in the github/codeql repository. On [GitHub Actions](https://talira.ai/catalog/github-actions-jgz14cgk.md) it powers GitHub's code scanning. The CLI is free for academic research and for analysing open source codebases; using it on private code is part of GitHub Code Security, a paid add-on.

## Links

- Website: https://codeql.github.com/
- GitHub: https://github.com/github/codeql
- Docs: https://codeql.github.com/docs/
- Pricing: https://github.com/security/advanced-security

## Problems it solves

- find security vulnerabilities in my code with static analysis
- scan my GitHub repository for SQL injection and XSS on every pull request
- write a custom query to find every variant of a bug in a large codebase
- run security code scanning in GitHub Actions

## Features

- code databases queried with the QL language
- data flow and taint tracking
- C/C++, C#, Go, Java/Kotlin, JavaScript/TypeScript, Python, Ruby, Rust, Swift, GitHub Actions
- open source MIT standard queries and libraries
- CodeQL CLI and VS Code extension
- GitHub code scanning integration

## Ways to run it

### CodeQL CLI (research and open source)

You run it, GitHub CodeQL Terms and Conditions. Price: free.[^1]

Only in this edition:

- academic research
- analysing open source codebases

Not included:

- use on private, closed-source code

Self-hosting docs: https://github.com/github/codeql-cli-binaries/blob/main/LICENSE.md

### GitHub Code Security

Hosted by GitHub. Price: $30 per active committer/month.[^2]

Only in this edition:

- CodeQL code scanning on private repositories

Pricing: https://github.com/security/advanced-security

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.77 out of 1.
Signals: maintenance 1.00, adoption 0.80, momentum 0.61, community 1.00, backing 0.55, extensibility 0.20.

- last commit today
- 2600 commits in the last 90 days
- 10.4k GitHub stars
- 480 contributors
- made by GitHub
- funding: acquired by Microsoft (2018)

## Alternatives

- [Snyk](https://talira.ai/catalog/snyk-sw1313nn.md): Find, fix and prevent vulnerabilities in code, open source dependencies, container images and cloud configurations
- [Brakeman](https://talira.ai/catalog/brakeman-9trdwbpm.md): A static analysis security vulnerability scanner for Ruby on Rails applications
- [SonarQube](https://talira.ai/catalog/sonarqube-hv6cp5td.md): Code confidence for the agentic software factory
- [Semgrep](https://talira.ai/catalog/semgrep-v0kqhvdn.md): Code security: SAST, supply chain and secrets scanning with rules that look like code
- [Bandit](https://talira.ai/catalog/bandit-1x0tdn1g.md): A security linter for Python code
- [Bearer CLI](https://talira.ai/catalog/bearer-cli-4r29s52f.md): Code security scanning tool (SAST) to discover, filter and prioritize security and privacy risks

## Sources

[^1]: https://github.com/github/codeql-cli-binaries/blob/main/LICENSE.md (checked 23 Nov 2026)
[^2]: https://github.com/security/advanced-security (checked 23 Nov 2026)
[^3]: https://codeql.github.com/ (checked 23 Nov 2026)
[^4]: https://github.com/github/codeql-cli-binaries/releases (checked 23 Nov 2026)
[^5]: https://blogs.microsoft.com/blog/2018/10/26/microsoft-completes-github-acquisition/ (checked 20 Nov 2026)
