semgrep

Install command:
brew install semgrep

Easily detect and prevent bugs and anti-patterns in your codebase

https://semgrep.dev

License: LGPL-2.1-only

Development: Pull requests

Formula JSON API: /api/formula/semgrep.json

Formula code: semgrep.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
tahoe
sequoia
sonoma
macOS on
Intel
sonoma
Linux ARM64
x86_64

Current versions:

stable 1.157.0
head ⚡️ HEAD

Depends on:

certifi 2026.4.22 Mozilla CA bundle for Python
cryptography 47.0.0 Cryptographic recipes and primitives for Python
dwarfutils 2.3.1 Dump and produce DWARF debug information in ELF objects
gmp 6.3.0 GNU multiple precision arithmetic library
libev 4.33 Asynchronous event library
pcre2 10.47 Perl compatible regular expressions library with a new API
pydantic 2.13.3 Data validation using Python type hints
python@3.14 3.14.4 Interpreted, interactive, object-oriented programming language
rpds-py 0.30.0 Python bindings to Rust's persistent data structures
sqlite 3.53.0 Command-line interface for SQLite
tree-sitter 0.26.8 Incremental parsing library
zstd 1.5.7 Zstandard is a real-time compression algorithm

Depends on when building from source:

ocaml 5.4.1 General purpose programming language in the ML family
opam 2.5.1 OCaml package manager
pkgconf 2.5.1 Package compiler and linker metadata toolkit

Analytics:

Installs (30 days)
semgrep 4,475
semgrep --HEAD 10
Installs on Request (30 days)
semgrep 4,471
semgrep --HEAD 10
Build Errors (30 days)
semgrep 10
Installs (90 days)
semgrep 17,063
semgrep --HEAD 26
Installs on Request (90 days)
semgrep 17,047
semgrep --HEAD 26
Installs (365 days)
semgrep 63,618
semgrep --HEAD 88
Installs on Request (365 days)
semgrep 63,563
semgrep --HEAD 88