Skip to content

Language Support#

MergeMonkey analyzes 25 programming and query languages — 19 with full tree-sitter AST parsing and 6 via regex pattern matching (Swift, Dart, Elixir, Perl, R, SQL, which have no production-ready grammar) — plus 5 markup/config formats. Every language shares the same core detector suite covering injection, secrets, crypto misuse, insecure deserialization, and more.

In total there are 24 bundled tree-sitter grammars (19 programming languages + 5 markup/config formats). AST parsing reasons about code structure — calls, assignments, data flow — not just text. Beyond language coverage, MergeMonkey ships 45 framework-specific support layers across 10 ecosystems that adapt detection to the idioms and pitfalls of popular frameworks.

AST-powered programming languages (19)#

Every file in these languages gets a full tree-sitter parse.

LanguageExtensions
JavaScript.js, .jsx, .mjs, .cjs
TypeScript.ts, .tsx, .mts, .cts
Python.py, .pyw
Java.java
Go.go
C#.cs
Kotlin.kt, .kts
Objective-C.m, .mm
Ruby.rb, .rake, .gemspec
PHP.php, .phtml
Rust.rs
Groovy.groovy, .gradle
Scala.scala, .sc
C.c, .h
C++.cpp, .cc, .cxx, .hpp, .hh, .hxx
Shell / Bash.sh, .bash, .zsh
Lua.lua
Julia.jl
Zig.zig

AST-powered markup & config (5)#

These formats also get a full tree-sitter parse, tuned for configuration and infrastructure mistakes.

FormatExtensions
HTML.html, .htm
CSS / SCSS.css, .scss, .sass, .less
JSON.json, .jsonc
YAML.yaml, .yml
Terraform / HCL.tf, .hcl

Pattern-matched languages (6)#

No production-ready tree-sitter grammar exists for these languages, so detection runs against a curated set of regex and heuristic patterns that cover the same core vulnerability classes. Coverage is narrower but still catches injection, insecure crypto, hardcoded secrets, and platform-specific pitfalls.

  • Swift — insecure Keychain usage, force-unwrap in production, biometric/LocalAuthentication bypass
  • Dart / Flutter — insecure local storage, command injection, WebView channel exposure
  • Elixir — unsafe deserialization (binary_to_term), atom injection, code injection
  • Perl — command injection, regex injection, insecure open()
  • R — command injection via system(), insecure serialization
  • SQL — injection patterns, unsafe dynamic statements

Framework-specific support#

MergeMonkey ships 45 framework support layers that recognize idiomatic patterns and ecosystem-specific security pitfalls:

LanguageFrameworks
JavaScript / TypeScriptExpress, NestJS, Next.js, React, Vue, Nuxt, Angular, Remix, Svelte, Astro, Apollo, Hapi, Koa, tRPC
PythonDjango, Flask, FastAPI, Tornado, Pyramid, Sanic
JavaSpring, Quarkus, Micronaut
GoGin, Echo, Fiber, Gorilla Mux
PHPLaravel, Symfony, Drupal, WordPress, Slim
RubyRails, Sinatra
RustActix, Rocket, Tokio
KotlinAndroid, Ktor
Swift / Objective-CSwiftUI, Vapor, UIKit
C#ASP.NET, Blazor, Unity

Framework detection adapts sink registries, severity calibration, and detection patterns per ecosystem — e.g. Django ORM patterns differ from Rails ActiveRecord patterns differ from raw SQL string handling.

Language detection#

MergeMonkey picks a language per file using the file extension first, then a content-based fallback (shebang, syntax heuristics). Files without a recognized language fall back to a best-effort text review that still catches secrets and hardcoded credentials.

Multi-language files#

We handle embedded languages correctly:

  • JavaScript inside <script> tags in HTML
  • SQL inside Python or Ruby string literals
  • Shell inside Dockerfile RUN directives
  • Inline CSS inside JSX / TSX

These are extracted and reviewed in their native context.

Missing a language or framework?

File a request via support — onboarding a new language is typically a week of tuning plus golden-dataset coverage. Framework support layers are faster to add. We prioritize by request volume.

Next#