gosec vs NodeJsScan
gosec
github.comNodeJsScan
github.comSide by side
| Figure | gosec | NodeJsScan |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | Yes | — |
| Web | — | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| API | Yes | Yes |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Static Application Security Testing Sast | 8.6 (#3) | 7.8 (#10) |
| Spec score · SAST Tools | 8.6 (#4) | 7.8 (#13) |
| Configuration | A JSON configuration file supports global settings such as audit mode and suppression behavior. | Users can configure scanned file types, ignored paths and rules, severity filters, and severity overrides with a .njsscan file. |
| License | The repository states that gosec is licensed under Apache License 2.0. | The NodeJsScan repository identifies its license as GPL-3.0. |
| Purpose | gosec inspects Go source code for security problems by scanning its AST and SSA code representation. | NodeJsScan is a static application security testing scanner for Node.js applications. |
Plans
In their own words
gosec
gosec is a free Go source-code security checker that analyzes abstract syntax trees and static single assignment representations. It applies pattern rules, SSA analyzers, and taint analysis to detect issues including injection, path traversal, SSRF, unsafe deserialization, cryptography and TLS problems, blocklisted imports, and Go-specific risks. Findings map to Common Weakness Enumeration entries. Users can select or exclude rules, define path-based exclusions, and change settings such as audit mode. Reports are available as text, JSON, YAML, CSV, JUnit XML, HTML, SonarQube, golint, and SARIF. The project documents GitHub Actions and SARIF uploads to GitHub code scanning; its goanalysis package supports tools such as Bazel nogo. Local installation requires Go 1.25 or newer, with dependencies loaded through Go modules. An optional AI feature suggests fixes through Atlas Cloud, Gemini, Claude, OpenAI, or custom OpenAI-compatible APIs. Automated detection can produce false positives, which annotations can suppress. It is licensed under Apache License 2.0.
NodeJsScan
NodeJsScan is a static application security testing scanner for Node.js application source code. Its detection engine uses libsast and Semgrep, and the project provides a web interface, command-line interface, and Python API through njsscan. A local setup runs the web interface at http://127.0.0.1:9090. CLI results can be exported as JSON, SARIF 2.1.0, SonarQube, DefectDojo, GitLab SAST, or HTML. The .njsscan configuration file lets users set scanned file types, ignored paths and rules, severity filters, and severity overrides. Documented CI/CD integrations include GitHub Actions, GitHub Code Scanning, GitLab CI/CD, Travis CI, and CircleCI. Alerts can go to Slack through a webhook or to email using SMTP settings. Teams can run a prebuilt Docker image or build the image locally. The project describes use in CI/CD and DevSecOps pipelines. NodeJsScan is free and licensed under GPL-3.0. The current njsscan package requires Python 3.10 or newer and supports macOS and Linux; NodeJsScan version 4 onward dropped Windows support.