skillfed

njsscan

njsscan is a SAST tool that can find insecure code patterns in your Node.js applications.

njsscan v1.0.0 163.0K downloads/30d#10,580 on PyPI446
Copyleft license Active released

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 njsscan

uv

uv add njsscan

poetry

poetry add njsscan

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

node.js security scanningsast tool javascriptstatic code analysis nodejsvulnerability detection javascriptcode pattern matching securitysemgrep nodejsinsecure code patterns
security-scanningnodejssast

More Quality Assurance packages

Further reading