@npm-breach/check
v1.0.7
Published
Security-focused CLI tool to detect potentially vulnerable packages in your Node.js applications
Maintainers
Readme
NPM Breach Check
Security-focused CLI tool to detect potentially vulnerable packages in your Node.js applications
A lightweight command-line scanner that checks for known vulnerable packages in your dependency tree. Help protect your applications by identifying packages that may pose security risks.
Quick Start
# Install globally
npm install -g @npm-breach/check
# Check your project for vulnerable packages
npm-breach-checkUsage
# Scan all packages in your project (default)
npm-breach-check
# Check a specific package and version
npm-breach-check check-package lodash "^4.17.20"
# List all monitored packages
npm-breach-check list
# Show help
npm-breach-check helpExample Output
Summary:
Total checked: 60
Found: 12
Affected versions: 1
Used but not affected: 11
Not used in the project: 48
Affected versions:
==================
✓ [email protected] (affected: 2.2.1)
Used but not affected:
======================
⚠ [email protected] (affected: 4.4.2)
⚠ [email protected] (affected: 5.6.1)
⚠ [email protected] (affected: 10.2.1)
⚠ [email protected] (affected: 7.1.1)
⚠ [email protected] (affected: 6.2.1)
⚠ [email protected] (affected: 9.0.1)
⚠ [email protected] (affected: 3.1.1)
⚠ [email protected] (affected: 2.0.1)
⚠ [email protected] (affected: 0.3.3)
⚠ [email protected] (affected: 6.0.1)
⚠ [email protected] (affected: 1.3.3)- Affected versions - Vulnerable packages found (need immediate attention)
- Used but not affected - Packages installed but in safe versions
- Not used in project - Packages not installed (you're safe)
Features
- Zero Configuration - Works out of the box
- Lightweight - Only one dependency (
semver) - Fast Scanning - Native Node.js performance
- Semantic Versioning - Supports version ranges (
^,~,>=, etc.) - Dependency Tree Analysis - Deep scanning with
npm ls
What It Checks
This tool monitors a curated list of packages known to have security considerations, including:
- Color manipulation packages (chalk, ansi-styles)
- Angular/React form utilities
- File processing libraries
- Template engines
- And many more...
Run npm-breach-check list to see the complete monitored package list.
Contributing
We welcome contributions to improve package security monitoring!
Adding New Packages
To add a potentially vulnerable package to the monitoring list:
- Fork this repository
- Edit
affected-packages.json - Add your package with version constraints:
{ "name": "package-name", "versions": ["^1.0.0", ">=2.1.0"] } - Submit a pull request with details about the security concern
Development Setup
git clone https://github.com/your-username/npm-breach-check.git
cd npm-breach-check
npm install
npm linkLicense
MIT © Contributors
Help keep the Node.js ecosystem secure - contribute to the monitored package list!
