awesome-nodejs-security
Awesome Node.js Security resources
https://github.com/lirantal/awesome-nodejs-security
Last synced: 17 days ago
JSON representation
-
npm and JavaScript specific security incidents and supply chain security issues
- rspack release notes - packages-rspack-vant-compromised-blocked-by-sonatype), [Socket](https://socket.dev/blog/rspack-supply-chain-attack)
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- socket
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- cycode
- Louisw Lang on Twitter
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- socket
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- socket
- Checkmarx Security blog
- zdnet
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Safety
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- SC Media
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Socket
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Aikido
- Socket
- ReversingLabs
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Aikido - chain-attack-hits-gluestack-npm-packages-with-960k-weekly-downloads/amp/)
- Veracode
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- ReversingLabs
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Socket
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Adventures in Nodeland
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Snyk - phishing-campaign-leads-to-prettier-tooling-packages-compromise), [Safedep](https://safedep.io/eslint-config-prettier-major-npm-supply-chain-hack/)
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Arstechnica
- Checkmarx Security blog
- Cybersecurity and Infrastructure Security Agency (CISA) - parser-js/issues/536), [IOCs](https://twitter.com/BleepinComputer/status/1451964720974635021?s=20), [portswigger](https://portswigger.net/daily-swig/popular-npm-package-ua-parser-js-poisoned-with-cryptomining-password-stealing-malware), [theregister](https://www.theregister.com/2021/10/27/npm_roblox_ransomware) |
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Snyk
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Snyk
- Checkmarx Security blog
- Forbes Lindesay - Maintainer post-mortem - did-is-promise-happen-and-what-can-we-learn-from-it/) |
- Snyk - hulud-worm-npm?utm_source=newsletter.danielmiessler.com&utm_medium=newsletter&utm_campaign=unsupervised-learning-no-498&_bhlid=1aa82504dd754b12c5b653c6fe6b1cd46b6e9d5a), [Aikido](https://www.aikido.dev/blog/bugs-in-shai-hulud-debugging-the-desert)
- left-pad.io - one-programmer-broke-the-internet-by-deleting-a-tiny-piece-of-code). |
- npm zoo
- Bleepingcomputer - found-in-coa-and-rc-two-npm-packages-with-23m-weekly-downloads/), [npm tweet](https://twitter.com/npmjs/status/1456310627362742284), [npm tweet for rc](https://twitter.com/npmjs/status/1456398505832976384). |
- Bleepingcomputer
- phylum
- Snyk - mortem on GitHub issue](https://github.com/axios/axios/issues/10636), [Mandaint report on UNC1069 involvement in Axios compromise](https://cloud.google.com/blog/topics/threat-intelligence/north-korea-threat-actor-targets-axios-npm-package)
- Snyk
- Snyk - npm-package-that-walked-away-with-all-your-passwords), [Bleeping Computer](https://www.technadu.com/malicious-package-stealing-user-credentials-npm-repository/77482/) |
- Snyk - shai-hulud-is-back-a-self-spreading-supply-chain-attack-hits-the-npm-ecosystem), [Socket](https://socket.dev/blog/tanstack-npm-packages-compromised-mini-shai-hulud-supply-chain-attack)
- Snyk
- TheRegister
- darkreading
-
Protestware supply chain security issues
- PyPI package author of atomicwrites deletes his own code
- left-pad
- node-ipc - pino](https://socket.dev/npm/package/nestjs-pino/files/3.1.1/postinstall.js) - all with regards to the Russian-Ukraine crisis.
- 2022's Techcrunch protestware review
- 2022's Snyk protestware types
- Open Souce Peace
- left-pad
-
Research Papers
-
Roadmaps
- Node.js Developer Roadmap
- NodeSource - Mission-critical Node.js applications. Provides N|Solid and Node Certified Modules.
- NodeSecure - An organization of developers building free and open source JavaScript/Node.js security tools.
- Sqreen - Automated security for your web apps - real time application security protection.
- Datadog ASM - Application security monitoring with real-time threat detection and protection (formerly Sqreen, acquired 2021).
-
Secure Composition
- pug-plugin-trusted-types - Pug template plugin makes it easy to securely compose HTML from untrusted inputs and provides CSP & CSRF [automagic](https://www.npmjs.com/package/pug-plugin-trusted-types#hdr-automagic).
- safesql - A tagged template (<code>mysql\`...\`</code>) that understands [Postgres](https://www.npmjs.com/package/safesql#pg)'s & [MySQL](https://www.npmjs.com/package/safesql#mysql)'s query grammar to prevent [SQL injection](https://www.oreilly.com/library/view/securing-node-applications/9781491982426/ch01.html#idm140399946848800).
- sh-template-tag - A tagged template (<code>sh\`...\`</code>) that understands Bash syntax so prevents [shell injection](https://www.oreilly.com/library/view/securing-node-applications/9781491982426/ch01.html#idm140399951358480).
-
Security Hardening
- express-limiter - Rate limiting middleware for Express applications built on redis.
- limits - Simple express/connect middleware to set limit to upload size, set request timeout etc.
- rate-limiter-flexible - Fast, flexible and friendly rate limiter by key and protection from DDoS and brute force attacks in process Memory, Cluster, Redis, MongoDb, MySQL, PostgreSQL at any scale. Express and Koa examples included.
- ses
- moddable
- resource - A structured list of all the Node.js versions, the binary builds, the dependencies they include (npm, zlib, openssl) along with their versions, whether the release is a security release and whether it is an LTS.
- resource - The `nodejs/secuirty-wg` GitHub repository maintains a `/vuln/core` directory with all the CVEs applied to Node.js runtime versions.
- hijagger - Checks all maintainers of all npm and PyPI packages for hijackable packages through domain re-registration.
- snync - Mitigate security concerns of Dependency Confusion supply chain security risks.
- NopPP - No Prototype Pollution - Tiny helper to protect against Prototype Pollution vulnerabilities in your application regardless if they introduced in your own code or in 3rd-party code.
- anti-trojan-source - Detect trojan source attacks that employ unicode bidi attacks to inject malicious code.
- tor-detect-middleware
- express-enforces-ssl
- bourne - in replacement with prototype poisoning protection.
- fastify-rate-limit
- secure-json-parse - in replacement with prototype poisoning protection.
- express-brute - force protection middleware for express routes that rate-limits incoming requests, increasing the delay with each request in a fibonacci-like sequence.
- allowed-scripts
- lavamoat - party dependencies and limit their access to host powers based on policies generated by trust-on-first-use static analysis.
- allowed-scripts
- @lavamoat/preinstall-always-fail - npm package to assert if preinstall or postinstall scripts are running in your npm or yarn workflows.
- are-scripts-enabled - npm package to assert if preinstall or postinstall scripts are running in your npm or yarn workflows.
- is-my-node-vulnerable - package that checks if your Node.js installation is vulnerable to known security vulnerabilities.
- FCaptcha - Self-hosted CAPTCHA with behavioral analysis that detects bots, vision AI agents, and headless browsers. Includes Node.js server with SHA-256 proof of work.
- @w-r-l/verify - Verify cryptographic integrity of WACZ web archive bundles. Checks Ed25519 signatures and RFC 3161 timestamps.
- pompelmi - Local-first file upload scanning for Node.js to inspect untrusted files before storage.
- verifyfetch - SRI-based integrity verification and resumable downloads for large files. Protects against CDN compromise and supply chain attacks in the browser.
- sigcli - Authentication layer for AI agents. Local MITM proxy on 127.0.0.1 intercepts HTTPS and injects credentials (cookies, bearer tokens, custom headers) transparently — AI agents authenticate without ever seeing secrets. AES-256-GCM encrypted storage, browser SSO, 4 auth strategies.
-
Static Code Analysis
- eslint-plugin-security - ESLint rules for Node Security. This project will help identify potential security hotspots, but finds a lot of false positives which need triage by a human.
- tslint-plugin-security - TSLint rules for Node Security. This project will help identify potential security hotspots, but finds a lot of false positives which need triage by a human.
- safe-regex - detect potentially catastrophic exponential-time regular expressions by limiting the star height to 1.
- vuln-regex-detector - This module lets you check a regex for vulnerability. In JavaScript, regular expressions (regexes) can be "vulnerable": susceptible to catastrophic backtracking. If your application is used on the client side, this can be a performance issue. On the server side, this can expose you to Regular Expression Denial of Service (REDOS).
- cspscanner - CSP Scanner helps developers and security experts to easily inspect and evaluate a site’s Content Security (CSP).
- cspscanner - CSP Scanner helps developers and security experts to easily inspect and evaluate a site’s Content Security (CSP).
- git-secrets - Prevents you from committing secrets and credentials into git repositories.
- DevSkim - DevSkim is a set of IDE plugins and rules that provide security "linting" capabilities. Also has support for CLI so it can be integrated into CI/CD pipeline.
- ban-sensitive-files - Checks filenames to be committed against a library of filename rules to prevent storing sensitive files in Git. Checks some files for sensitive contents (for example authToken inside .npmrc file).
- NodeJSScan - A static security code scanner for Node.js applications. Including neat UI that can point where the issue is and how to fix it.
- NodeSecure CLI - Node.js CLI that allow you to deeply analyze the dependency tree of a given npm package or a directory.
- Trust But Verify - TBV compares an npm package with its source repository to ensure the resulting artifact is the same.
- lockfile-lint - lint lockfiles for improved security and trust policies to keep clean from malicious package injection and other insecure configurations.
- npm-scan - An extensible, heuristic-based vulnerability scanning tool for installed npm packages.
- js-x-ray - JavaScript and Node.js SAST scanner capable of detecting various well-known malicious code patterns (Unsafe import, Unsafe stmt, Unsafe RegEx, encoded literals, minified and obfuscated codes).
- eslint-plugin-anti-trojan-source - ESLint plugin to detect and prevent Trojan Source attacks from entering your codebase.
- sdc-check - Small tool to inform you about potential risks in your project dependencies list
- fix-lockfile-integrity - A CLI tool to fix weak integrity hash (sha1) to a more secure integrity hash (sha512) in your npm lockfile.
- Bearer - A CLI tool to find and help you fix security and privacy risks in your code according to OWASP Top 10.
- GuardDog - GuardDog is a CLI tool to Identify malicious PyPI and npm packages
- pkgsign - A CLI tool for signing and verifying npm and yarn packages.
- regolith - Regex library for TypeScript made to prevent ReDoS attacks I made TypeScript bindings for the Rust Regex library to prevent Regular Expression Denial of Service attacks.
- cspscanner - CSP Scanner helps developers and security experts to easily inspect and evaluate a site’s Content Security (CSP).
- repolyze - Analyze a git source code repository for health signals and project vitals
-
Vulnerabilities and Security Advisories
- snyk - Snyk helps you find, fix and monitor known vulnerabilities in Node.js npm, Ruby and Java dependencies, both on an ad hoc basis and as part of your CI (Build) system.
- node-release-lines - Introspection API for Node.js release metadata. Provides information about release lines, their relative status along with details of each release.
- npm-audit - Runs a security audit based on your package.json using npm.
- npm-audit-resolver - Manage npm-audit results, including options to ignore specific issues in clear and auditable way.
- patch-package - Allows app authors to create fixes for npm dependencies (in node_modules) without forking or waiting for merged PRs, by creating and applying patches.
- npq - Safely install packages with npm or yarn by auditing them as part of your install process.
- gammaray - Runs a security audit based on your package.json using the [Node.js Security Working Group vulnerability data](https://github.com/nodejs/security-wg/).
- check-my-headers - Fast and simple way to check any HTTP Headers.
- confused - Tool to check for dependency confusion vulnerabilities in multiple package management systems. See [Dependency Confusion: How I Hacked Into Apple, Microsoft and Dozens of Other Companies](https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610) for reference on the reasoning for this tool.
- nodejs-cve-checker - A simple tool that validates CVEs were published to NVD after a Node.js Security Release.
- is-website-vulnerable - finds publicly known security vulnerabilities in a website's frontend JavaScript libraries.
- npm-audit - Runs a security audit based on your package.json using npm.
- joi-security - Detect security flaws in Joi validation schemas.
- zizmor - Static analysis for GitHub Actions and CI/CD workflows.
- auditjs - Audits an NPM package.json file to identify known vulnerabilities using the [OSSIndex](https://ossindex.sonatype.org/rest).
- releaserun - Scan project dependencies for end-of-life runtimes, known CVEs, and version health grades across 300+ products.
- clawsearch-guard - Pre-install security check for AI agent skills and npm packages. Runs Trust Score analysis before installation to detect malicious patterns, data exfiltration, and prompt injection.
-
Web Framework Hardening
- Helmet - Helmet helps you secure your Express apps by setting various HTTP headers.
- koa-helmet - koa-helmet helps you secure your Koa apps by setting various HTTP headers.
Programming Languages
Categories
npm and JavaScript specific security incidents and supply chain security issues
270
Security Hardening
28
Static Code Analysis
24
Vulnerabilities and Security Advisories
17
Articles
15
Input Validation & Output Encoding
10
Protestware supply chain security issues
7
Web Framework Hardening
7
Books
6
Roadmaps
6
CSRF
3
Secure Composition
3
Hacking Playground
3
GitHub Actions and CI/CD Security
2
License
1
Dynamic Application Security Testing
1
Research Papers
1
Newsletters
1
Sub Categories
Keywords
security
17
nodejs
11
npm
11
javascript
10
security-tools
5
static-analysis
3
python
3
sast
3
security-audit
3
typescript
3
supply-chain-security
3
vulnerabilities
3
fastify-plugin
3
fastify
3
node
3
devsecops
2
rate-limiting
2
appsec
2
security-scanner
2
lint
2
xss
2
linter
2
pypi
2
csrf
2
module
2
owasp
2
privacy
2
sensor
1
environment
1
check
1
validation
1
vulnerability
1
fastify-library
1
json-parser
1
code-analysis
1
static-code-analysis
1
security-automation
1
code-review
1
gdpr
1
node-security
1
devsecops-tools
1
nodejsscan
1
dataflow
1
compliance
1
code-quality
1
docker
1
heroku
1
nodegoat
1
owasp-top-ten
1
owasp-zap
1