
Joern
Code property graph workbench for vulnerability research and SAST
Replaces Checkmarx One, Semgrep Code, Veracode Static Analysis, Qwiet Ai
Who it's for
After a CVE disclosure, Joern lets researchers write CPG queries to scan a codebase for structurally similar patterns: same data flow shape, different function names or call sites. The interactive shell supports iterating on the query against the real CPG until the right variants surface across a large codebase.
Your research is limited to identifying known CVEs by signature match. Off-the-shelf vulnerability scanners with curated rule sets handle that case with considerably less setup.
Security teams can wrap their Joern queries into named scanners via QueryDB and run them in CI through the REST API, generating findings against each pull request. This gives AppSec teams analysis rules encoding their organization's specific threat model rather than a generic vendor rule set.
Your team needs pre-built, actively maintained rule sets without authoring queries. Commercial SAST products offer broad out-of-the-box coverage; Joern requires query authorship to produce useful results.
Joern's Ghidra-backed binary analysis and Soot-backed JVM bytecode support cover third-party libraries and firmware where no source code is available. This makes it applicable to supply chain security reviews, auditing compiled vendor SDKs, and analyzing targets from penetration testing engagements.
All code you analyze is your own source and you have no binary analysis requirement. A lighter SAST tool will serve you with less operational overhead.
The interactive CPG query shell is suited for quickly understanding an unfamiliar codebase: finding all user-controlled inputs, tracing data flows to dangerous sinks, and identifying call paths to sensitive APIs. The graph model surfaces relationships that are not visible from file-by-file reading.
You need findings that map directly to CVSSv3 scores or produce compliance reports automatically. Commercial SAST tools generate those report formats; Joern outputs raw query results that require manual interpretation.
The problem
Finding security vulnerabilities across large codebases requires more than pattern matching. Surface-level rules miss multi-step vulnerabilities where data flows from an untrusted input through several function calls before reaching a dangerous sink. Manual review does not scale, and most commercial SAST tools box analysts into predefined rule sets without a way to express novel query patterns. The problem is acute for teams auditing binary executables, bytecode, or polyglot codebases mixing C, C++, Java, and JavaScript. No single open source tool traditionally covered all of these from a unified query interface. Security researchers tracking vulnerability variants after a CVE disclosure often have to build bespoke analysis tooling from scratch, or pay per-seat licensing fees to a vendor whose rules may not cover the specific variant they are hunting.
How it works
Joern models each codebase as a unified graph combining the abstract syntax tree, control flow graph, and program dependence graph into one queryable structure. CPGs let analysts traverse data flows, control flows, and call graphs in a single query, catching multi-step vulnerabilities that pattern-based scanners miss.
Analyzes C, C++, Java, JVM bytecode via Soot, JavaScript, Python, and Kotlin source code, plus x86 binary executables via Ghidra integration and LLVM bitcode. Each language frontend generates a CPG in a common format, so analysis queries work across languages in a polyglot codebase.
Ships with an interactive console where analysts can import a codebase, inspect its CPG, and write Scala-based traversal queries in real time. The shell is designed for exploratory vulnerability research: iterating on a query until it surfaces the right data flow pattern or call path.
Queries can be packaged as named scanners using the QueryDB plugin system and run automatically in CI. Joern exposes a REST API for server mode and ships as an embeddable library, covering both interactive research and automated pipeline use cases without a separate SaaS dependency.
The release workflow publishes platform-specific distribution zips for Linux (x86_64, ARM64), macOS (x86_64, ARM64), and Windows (x86_64, ARM64) once per day automatically. The install script detects the current platform and downloads the correct archive without manual selection.
Features
- Code property graphs (CPG)
- Multi-language and binary support
- Interactive query shell
- Custom scanner and CI integration
- Daily multi-platform releases
How to install
Install Joern on Linux, macOS, or Windows using the official install script (requires JDK 21).
wget https://github.com/joernio/joern/releases/latest/download/joern-install.sh
chmod +x ./joern-install.sh
sudo ./joern-install.shDeploy using Docker for server mode or CI integration.
docker run --rm -it -v /tmp:/tmp -v $(pwd):/app:rw -w /app -t ghcr.io/joernio/joern:master joernRecommended for this setup
Strengths
- Apache-2.0 license with full self-hosting: Licensed under Apache-2.0, Joern can be run on private infrastructure with no licensing fees and no code sent to external servers. Commercial SAST products like Checkmarx One and Veracode Static Analysis route code through vendor cloud services; Joern keeps all analysis within your own perimeter.
- Binary and bytecode analysis without source code: Most SAST tools require access to source code. Joern analyzes x86 binaries via Ghidra and JVM bytecode via Soot, making it applicable to closed-source libraries, compiled firmware, and third-party dependencies where source is unavailable. This coverage is rare in open source security tooling.
- Expressive inter-procedural query language: The Scala-based DSL supports complex multi-hop traversals: tracing paths from taint sources to sinks through call graphs, checking reachability conditions, and filtering by data flow properties. Security researchers who need to express queries beyond simple pattern rules find the CPG model substantially more capable than AST-only matchers or YAML rule engines.
- Active development with major version milestones: Joern shipped a full Scala 3 migration in v2.0 and a graph backend rewrite in v4.0 (from overflowdb to flatgraph), signaling sustained architectural investment. Automated daily releases, 3,612 GitHub stars, and a community Discord indicate an active project, not an abandoned research prototype.
Trade-offs
- Steep learning curve for the query language: Writing effective Joern queries requires learning a Scala-based DSL and understanding code property graph concepts (abstract syntax tree, control flow graph, program dependence graph). Teams without Scala experience face a meaningful onboarding investment before they can write custom traversals, unlike point-and-click commercial SAST tools with pre-built rule sets.
- 283 open issues as of October 2026: With 283 open issues, the project carries a visible bug and feature backlog. Users who encounter parsing failures or incomplete language frontend behavior may need to wait for community fixes or contribute patches, as maintainers are primarily researchers and industry contributors working on their own schedules.
- JDK 21 required: Joern requires JDK 21, and the README notes that other versions might work but have not been properly tested. Teams on managed JVM environments or CI systems pinned to an older Java version may need to install or maintain a separate Java 21 runtime alongside their existing toolchain.
Tech stack
FAQ
Joern supports C, C++, Java, JVM bytecode via Soot, JavaScript, Python, Kotlin, and x86 binaries via Ghidra integration. LLVM bitcode analysis is also supported. Each language frontend generates a CPG in the same format, so analysis queries work consistently across languages in a polyglot codebase.
Download and run the official install script from GitHub Releases: fetch `joern-install.sh`, make it executable, and run it with sudo. The script auto-detects your platform (Linux, macOS, or Windows) and downloads the correct binary zip. JDK 21 is required. Docker-based deployment is also available via `ghcr.io/joernio/joern` for server mode and CI use cases.
Joern is Apache-2.0 licensed, which permits commercial use, modification, and distribution without requiring you to open-source your own work. You can run it on internal infrastructure, build proprietary tooling on top of it, and use it for paid security engagements without licensing fees or usage limits.
Joern and Semgrep Code use different analysis models. Semgrep uses pattern-based rules on the AST, which are easier to write for common vulnerability classes and come with a large community rule library. Joern uses code property graphs and a graph traversal DSL, which is more expressive for complex inter-procedural data flow queries but requires Scala familiarity and more setup time. Semgrep Code is a managed SaaS service with paid plans; Joern is fully self-hosted and Apache-2.0 licensed.
Yes. Joern analyzes x86 binary executables via its Ghidra integration, converting the disassembly into a CPG queryable with the same DSL used for source code. JVM bytecode analysis is handled via Soot. This makes Joern applicable to third-party library audits, firmware analysis, and any target where source is unavailable.