{"id":19092870,"url":"https://github.com/eon01/nodess","last_synced_at":"2026-05-25T15:30:17.284Z","repository":{"id":74328570,"uuid":"66649943","full_name":"eon01/NodeSS","owner":"eon01","description":"NodeSS: Node.js Security Scanner : This container will scan your Nodejs code for dependency vulnerabilities, print the result and exits","archived":false,"fork":false,"pushed_at":"2016-09-14T22:41:47.000Z","size":323,"stargazers_count":23,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-02T23:21:42.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eon01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-26T13:29:19.000Z","updated_at":"2023-12-11T04:01:13.000Z","dependencies_parsed_at":"2023-07-08T21:31:35.506Z","dependency_job_id":null,"html_url":"https://github.com/eon01/NodeSS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eon01%2FNodeSS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eon01%2FNodeSS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eon01%2FNodeSS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eon01%2FNodeSS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eon01","download_url":"https://codeload.github.com/eon01/NodeSS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240142764,"owners_count":19754633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T03:22:29.165Z","updated_at":"2026-05-25T15:30:17.212Z","avatar_url":"https://github.com/eon01.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodeSS : Node.js Security Scanner\n\nThis container will scan your Nodejs code for dependency vulnerabilities usinf nsp, print the result and exits.\nYou can find the container on Docker Hub : https://hub.docker.com/r/eon01/nodejs-security-scanner/\n\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"static/logo.png\" /\u003e\n\u003c/p\u003e\n\n\n# How To\n\nDownload your Node.js code to a folder and execute the docker container within the source code folder:\n\n```\ncd app/\ndocker run -it --rm  --name nsp-security-check -v \"$PWD\":/usr/src/app  eon01/nodejs-security-scanner:1.0\n```\n\nThis is an output example:\n\n```\ndocker run -it --rm  --name nsp-security-check -v \"$PWD/code\":/usr/src/app  eon01/nodejs-security-scanner:1.0\nUnable to find image 'eon01/nodejs-security-scanner:1.0' locally\n1.0: Pulling from eon01/nodejs-security-scanner\n357ea8c3d80b: Already exists \n52befadefd24: Already exists \n3c0732d5313c: Already exists \nceb711c7e301: Already exists \n868b1d0e2aad: Already exists \n539fff81aa52: Already exists \nd12b34ef0311: Pull complete \nDigest: sha256:4b652c5aa023c2417b412e6f57ecfc2f35dfc26d8c168dfbaff5410308b7e0a9\nStatus: Downloaded newer image for eon01/nodejs-security-scanner:1.0\n(+) 5 vulnerabilities found\n┌───────────────┬──────────────────────────────────────────────────────────────────────┐\n│               │ ReDoS via long string of semicolons                                  │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Name          │ tough-cookie                                                         │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Installed     │ 2.2.2                                                                │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Vulnerable    │ \u003e=0.9.7 \u003c=2.2.2                                                      │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Patched       │ \u003e=2.3.0                                                              │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Path          │ API@1.2.0 \u003e phantomjs@2.1.7 \u003e request@2.67.0 \u003e tough-cookie@2.2.2    │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ More Info     │ https://nodesecurity.io/advisories/130                               │\n└───────────────┴──────────────────────────────────────────────────────────────────────┘\n┌───────────────┬──────────────────────────────────────────────────────────────────────┐\n│               │ Regular Expression Denial of Service                                 │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Name          │ minimatch                                                            │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Installed     │ 2.0.10                                                               │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Vulnerable    │ \u003c=3.0.1                                                              │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Patched       │ \u003e=3.0.2                                                              │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Path          │ API@1.2.0 \u003e pm2@1.1.3 \u003e yamljs@0.2.7 \u003e glob@4.5.3 \u003e minimatch@2.0.10 │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ More Info     │ https://nodesecurity.io/advisories/118                               │\n└───────────────┴──────────────────────────────────────────────────────────────────────┘\n┌───────────────┬──────────────────────────────────────────────────────────────────────┐\n│               │ DoS due to excessively large websocket message                       │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Name          │ ws                                                                   │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Installed     │ 1.1.0                                                                │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Vulnerable    │ \u003c=1.1.0                                                              │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Patched       │ \u003e=1.1.1                                                              │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Path          │ API@1.2.0 \u003e socket.io@1.4.8 \u003e engine.io@1.6.11 \u003e ws@1.1.0            │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ More Info     │ https://nodesecurity.io/advisories/120                               │\n└───────────────┴──────────────────────────────────────────────────────────────────────┘\n┌───────────────┬──────────────────────────────────────────────────────────────────────┐\n│               │ Regular Expression Denial of Service                                 │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Name          │ negotiator                                                           │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Installed     │ 0.4.9                                                                │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Vulnerable    │ \u003c= 0.6.0                                                             │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Patched       │ \u003e= 0.6.1                                                             │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Path          │ API@1.2.0 \u003e socket.io@1.4.8 \u003e engine.io@1.6.11 \u003e accepts@1.1.4 \u003e ne… │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ More Info     │ https://nodesecurity.io/advisories/106                               │\n└───────────────┴──────────────────────────────────────────────────────────────────────┘\n┌───────────────┬──────────────────────────────────────────────────────────────────────┐\n│               │ DoS due to excessively large websocket message                       │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Name          │ ws                                                                   │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Installed     │ 1.0.1                                                                │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Vulnerable    │ \u003c=1.1.0                                                              │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Patched       │ \u003e=1.1.1                                                              │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ Path          │ API@1.2.0 \u003e socket.io@1.4.8 \u003e socket.io-client@1.4.8 \u003e engine.io-cl… │\n├───────────────┼──────────────────────────────────────────────────────────────────────┤\n│ More Info     │ https://nodesecurity.io/advisories/120                               │\n└───────────────┴──────────────────────────────────────────────────────────────────────┘\n```\n\n\n# Getting A JSON Output\n\n```\ndocker run -it --rm  --name nsp-security-check -v \"$PWD\":/usr/src/app -e OUTPUT='json'  eon01/nodejs-security-scanner:1.0\n```\n\n# Integrating A Security Test In Your Jenkins CI\n\nYou can easily integrate this into your Jenkins CI pipeline. \n\n- Install Docker in your Jenkins server.\n- Add Jenkins to Docker group:\n\n```\nsudo usermod -aG docker jenkins\n```\n\nAnd add a simple shell script to your Jenkins job:\n\n```\n#!/bin/bash -e\ndocker run  --rm  --name nsp-security-check -v \"$PWD\":/usr/src/app  eon01/nodejs-security-scanner:1.0\n```\nIf one vulnerability is found the execution will return 1 otherwise 0:\n\n```\ndocker run -it --rm --name nsp-security-check -v /home/ubuntu/test/:/usr/src/app/ eon01/nodejs-security-scanner:1.0\n(+) No known vulnerabilities found\n```\n\nOutput:\n\n```\nroot@myserver:/tmp# echo $?\n0\n```\n\n![Jenkins Integration](static/jenkins.jpg  \"Jenkins Integration\")\n\n# Credits\n\nnodejs-security-scanner image uses:\n\n- Docker : https://github.com/docker/docker\n- nsp : https://github.com/nodesecurity/nsp\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feon01%2Fnodess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feon01%2Fnodess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feon01%2Fnodess/lists"}