njsscan
njsscan is a SAST tool that can find insecure code patterns in your Node.js applications.
What it is and what it does
njsscan combines two scanning approaches to find security issues in Node.js code: simple pattern matching via libsast and syntax-aware semantic analysis via semgrep. It detects common vulnerabilities like SQL injection, cross-site scripting (XSS), open redirects, and other OWASP-class issues. The tool runs from the command line or as a Python library, accepts configuration files to customize rules and ignore paths, and outputs results in multiple formats including JSON, SARIF, SonarQube, DefectDojo, GitLab SAST, and HTML.
The package is designed for developers and security teams integrating code scanning into development workflows. It supports suppressing individual findings via inline comments, filtering by severity level, and overriding rule severity. Runtime dependencies include colorama for terminal output, tabulate for formatted tables, and the two core scanning engines (libsast and semgrep), plus utilities for schema validation and SARIF report generation.
Use it for:
- Scan Node.js source code in CI/CD pipelines to catch security issues before deployment.
- Integrate into local development workflows to find insecure patterns during code review.
- Generate compliance-ready security reports in SonarQube, DefectDojo, or GitLab SAST formats.
- Suppress known false positives or acceptable patterns using inline comments and configuration files.
- Audit existing Node.js codebases for common vulnerabilities like SQL injection and XSS.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
njsscan is a static application security testing (SAST) tool that finds insecure code patterns in Node.js applications using pattern matching and semantic code analysis.
Yes, if you develop Node.js applications on Mac or Linux and want to integrate security scanning into your workflow. The tool is actively maintained, has no known vulnerabilities, and offers both CLI and Python API access. The LGPLv3+ license is a consideration for proprietary software; review your distribution model before use. Windows is not supported.
Install
njsscan on PyPI
pip
pip install njsscanuv
uv add njsscanpoetry
poetry add njsscanInstalling njsscan
Before you install
Low install friction with a pure Python wheel. Actively maintained as of 2026-08-11 with recent releases. Requires Python 3.10 or later and runs on Mac and Linux only.
License in practice
Licensed under LGPLv3+, a copyleft license. Derivative works and modifications must be released under the same license; using this in proprietary software requires careful review of your distribution model.
Quickstart
pip install njsscan
from njsscan.njsscan import NJSScan
scanner = NJSScan(['/path/to/node/code'], json=True)
scanner.scan()
Requires Python 3.10+ and runs only on Mac and Linux (not Windows).
Verify before relying
- Whether semgrep and libsast dependencies are pre-installed or downloaded on first run, and any network/system requirements they impose.
- Performance characteristics and typical scan time for large Node.js codebases.
- Whether the tool can be integrated into CI/CD pipelines beyond the GitHub Actions example shown.
Package facts
| License | not declared (copyleft) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — colorama, libsast, semgrep, sarif-om, jschema-to-python, tabulate |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 163,023/month — #10,580 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: njsscan-1.0.0-py3-none-any.whl
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
libsastlibsast is a static application security…
copyleft · top 15,000 on PyPI
mobsfscanmobsfscan is a static analysis tool that…
copyleft · top 15,000 on PyPI
secscanner2junitConverts GitLab security scanner output (SAST,…
copyleft · top 15,000 on PyPI
semgrepSemgrep is a static analysis tool that searches…
copyleft · top 1,000 on PyPI
kingfisher-binKingfisher is a command-line secret scanner…
permissive · top 15,000 on PyPI
cycodeCycode is a command-line security scanner that…
permissive · top 15,000 on PyPI
cisco-ai-skill-scannerScans AI Agent Skills for prompt injection,…
permissive · top 15,000 on PyPI
trailmarkParses source code into a queryable graph of…
permissive · top 15,000 on PyPI
xbslXBSL is a linter, LSP server, and metadata…
permissive · top 15,000 on PyPI
MarkupSafeMarkupSafe provides a text object that escapes…
permissive · top 100 on PyPI