myjwt
Pentesting Tool for JWT(JSON Web Tokens).Modify/Crack/Check Your jwt.
What it is and what it does
MyJWT is a command-line pentesting tool designed for security researchers, CTF players, and developers to inspect, modify, and test JWT tokens. It provides a user interface for decoding JWTs, altering headers and payloads, signing with custom keys, and attempting to crack or verify signatures through brute-force or regex-based attacks. The tool also includes features to test known JWT vulnerabilities such as the none algorithm, RSA/HMAC confusion, kid injection, and jku/x5u header bypasses.
The tool operates as a standalone CLI with no external runtime dependencies, making it lightweight to install and run. It can modify JWT components, send crafted tokens to target URLs with custom HTTP methods and data, and copy results to the clipboard for easy integration into testing workflows. It's particularly useful for security assessments where JWT validation logic needs to be tested or where token manipulation is part of the attack surface.
Use it for:
- Test for the none algorithm vulnerability in JWT implementations by attempting to bypass signature verification.
- Brute-force JWT secrets using a wordlist to discover weak signing keys used in production systems.
- Modify JWT payloads and headers to test authorization bypass or privilege escalation in web applications.
- Exploit RSA/HMAC algorithm confusion to forge valid signatures using a public key as the HMAC secret.
- Test jku and x5u header injection vulnerabilities to bypass JWT validation through external key sources.
- Crack JWT signatures using regex patterns to guess keys based on known character sets or patterns.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A command-line tool for testing and manipulating JSON Web Tokens (JWTs), including modification, signing, verification, and exploitation of common JWT vulnerabilities.
Yes. The tool is actively maintained, has no external dependencies, supports current Python versions, carries a permissive license, and has no known vulnerabilities. It is well-suited for security professionals and developers who need to test JWT implementations. Install it if you regularly perform JWT security assessments or CTF challenges.
Install
myjwt on PyPI
pip
pip install myjwtuv
uv add myjwtpoetry
poetry add myjwtInstalling myjwt
Before you install
Low install friction with no runtime dependencies. Actively maintained with recent commits and production-stable status; supports current Python versions (3.10, 3.11, 3.12).
License in practice
Permissive license allows use in commercial and private projects with minimal restrictions.
Quickstart
pip install myjwt
myjwt YOUR_JWT_TOKEN --print
myjwt YOUR_JWT_TOKEN --add-payload "username=admin" --sign mysecretkey
Requires Python 3.10 or later.
Verify before relying
- Whether the tool's exploitation features (RSA/HMAC confusion, kid injection, jku/x5u bypass) work reliably against real-world JWT implementations.
- Whether brute-force and regex-crack features scale adequately for large wordlists or complex patterns.
- Whether the clipboard integration and HTTP request features work consistently across different operating systems.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 765 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 84,851/month — #13,966 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: myjwt-2.1.0-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
python-jwtGenerates and verifies JSON Web Tokens (JWTs)…
permissive · top 15,000 on PyPI
joseImplements JSON Web Signature (JWS) and JSON…
permissive · top 15,000 on PyPI
jwskateImplements the JOSE family of IETF standards…
permissive · top 5,000 on PyPI
jwtEncodes and decodes JSON Web Tokens (JWTs) with…
permissive · top 5,000 on PyPI
python-joseImplements JOSE (JSON Object Signing and…
permissive · top 1,000 on PyPI
types-jwtProvides type stubs for the jwt package,…
permissive · top 15,000 on PyPI
joserfcjoserfc implements JOSE standards (JWS, JWE,…
permissive · top 1,000 on PyPI
okta-jwt-verifierVerifies JWT tokens issued by Okta, checking…
permissive · top 15,000 on PyPI
django-ninja-jwtProvides JWT authentication for Django-Ninja…
permissive · top 15,000 on PyPI
PyJWTPyJWT encodes and decodes JSON Web Tokens (JWT)…
permissive · top 100 on PyPI