# epinna/tplmap

Server-Side Template Injection and Code Injection Detection and Exploitation Tool

Repository: https://github.com/epinna/tplmap
Canonical: https://ross.abutalabs.com/products/tplmap
Language: Python
License: GPL-3.0
License Family: copyleft
Last push: 2024-04-21T14:47:13+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3710, "days_push": 864, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4197, forks 685 (observed 2026-08-28T04:08:38.882353+00:00)

## What it is
Tplmap is a Python command-line tool that automatically detects and exploits Server-Side Template Injection (SSTI) and code injection vulnerabilities in web applications, using sandbox escape techniques to gain OS-level access. It supports many template engines (Jinja2, Mako, Smarty, etc.) and eval-like injections in Python, Ruby, PHP, and Java.

## Use cases
- detect server-side template injection in a web app
- exploit SSTI to get remote code execution
- test if a URL parameter is vulnerable to template injection
- identify which template engine a web application uses
- perform sandbox escape during a penetration test
- find eval-like code injection vulnerabilities
- audit web apps for code injection during black box testing

## When to choose
- you are pentesting a web application and suspect template injection
- you need to identify and exploit SSTI across many template engines
- you want an automated sqlmap-like tool for code injection

## When to avoid
- you need a maintained tool - the project is no longer actively developed
- you need defensive scanning rather than offensive exploitation
- you are not authorized to test the target application

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: penetration-testing, security, cli
- domain: security, penetration-testing, web-development
- platform: python, cli, windows
- tags: ssti, code-injection, template-injection, offensive-security, exploitation, pentest-tool, linux, macos

## Member repositories
- epinna/tplmap (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:38.882353+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:22:33.950807+00:00, confidence not recorded.
  - readme: https://github.com/epinna/tplmap (fetched 2026-08-28T04:08:38.882353+00:00, sha 6e892ba0bacb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
