CLI tool to check if your self-hosted n8n instance is vulnerable to CVE-2026-21858 (Ni8mare).
The tool checks the n8n version exposed at the public settings endpoint and compares it against the patched version (1.121.0).
Important: This performs a version check only. It does not test the actual exploit path (Content-Type confusion in webhook/file handling). The most reliable mitigation is updating n8n.
curl -s https://your-n8n-url/rest/settings | grep -o versionCli
If the version is below 1.121.0, update immediately.
python3 legion_n8n_audit.py https://your-n8n-instance.com
Only scan instances you own or are authorized to test.
MIT
A web-based version of this scanner is available at legion-api.com
3 commits
Python
100.0%
CLI tool to check if your self-hosted n8n instance is vulnerable to CVE-2026-21858 (Ni8mare).
The tool checks the n8n version exposed at the public settings endpoint and compares it against the patched version (1.121.0).
Important: This performs a version check only. It does not test the actual exploit path (Content-Type confusion in webhook/file handling). The most reliable mitigation is updating n8n.
curl -s https://your-n8n-url/rest/settings | grep -o versionCli
If the version is below 1.121.0, update immediately.
python3 legion_n8n_audit.py https://your-n8n-instance.com
Only scan instances you own or are authorized to test.
MIT
A web-based version of this scanner is available at legion-api.com
3 commits
Python
100.0%