RetireJS/retire.js
RetireJS/retire.js has 4,205 GitHub stars and 441 forks. GitHot measured 0 stars in 24 hours, +8 in 7 days, and +15 in 15 days. Last checked 2026-11-08 13:38 UTC. Last push 2026-11-06.
알려진 취약점이 있는 JavaScript 라이브러리의 사용을 탐지하는 스캐너입니다. 탐지한 라이브러리의 SBOM도 생성할 수 있습니다.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +8
- in 15 days
- +15
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalRetire.js
What you require you must also retire
There is a vast ecosystem of JavaScript libraries available for both web and Node.js applications. While these libraries significantly accelerate development, they also require ongoing maintenance to ensure security vulnerabilities are addressed promptly. In 2013, “Using Components with Known Vulnerabilities” was added to the OWASP Top 10 list of critical security risks, highlighting the serious threat that outdated or insecure dependencies can pose to web applications. Retire.js was created to help developers identify JavaScript library versions with known vulnerabilities, especially those that are not in package manifests, but simply downloaded and put in source control.
Retire.js can be used in many ways:
- As command line scanner
- As a Chrome extension - Not officially available in the Chrome web store
- As a Burp Extension or OWASP ZAP Add-on
- As a Firefox extension - Deprecated Let us know if you want to maintain and undeprecate it.
- A headless web site scanner
- As a grunt plugin (deprecated)
- As a gulp task (deprecated)
Command line scanner
Scan a web app or node app for use of vulnerable JavaScript libraries and/or Node.JS modules. If you haven't already, you need to install node/npm first. In the source code folder of the application folder run:
$ npm install -g retire
$ retire
SBOM generation
retire.js can generate SBOMs in the CycloneDX-format:
$ retire --outputformat cyclonedx
cyclonedx produces CycloneDX 1.4 XML. For JSON, and for newer spec versions, use cyclonedxJSON (1.4), cyclonedxJSON1_6 or
cyclonedxJSON1_7. The cyclonedxJSON1_6_VEX and cyclonedxJSON1_7_VEX variants also include a vulnerabilities section.
By default retire.js will exit with code 13 if it finds vulnerabilities. This can be overridden with --exitwith 0.
Chrome and firefox extensions
Scans visited sites for references to insecure libraries, and puts warnings in the developer console. An icon on the address bar displays will also indicate if vulnerable libraries were loaded.
Burp Extension and OWASP ZAP Add-on
@h3xstream has adapted Retire.js as a plugin for the penetration testing tools Burp and OWASP ZAP.
The OWASP ZAP team officially supports a Retire.js add-on which is available via the ZAP Marketplace and is included by default in the ZAP weekly releases: https://www.zaproxy.org/docs/desktop/addons/retire.js/
Headless site scanner
The retire-site-scanner https://github.com/RetireJS/retire-site-scanner can be used to scan a web site in headless mode (as opposed to using the chrome/firefox extensions)
Grunt plugin (deprecated)
A Grunt task for running Retire.js as part of your application's build routine, or some other automated workflow.
Gulp task (deprecated)
An example of a Gulp task which can be used in your gulpfile to watch and scan your project files automatically. You can modify the watch patterns and (optional) Retire.js options as you like.
const c = require("ansi-colors");
var gulp = require("gulp");
var beeper = require("beeper");
var log = require("fancy-log");
var spawn = require("child_process").spawn;
gulp.task("retire:watch", ["retire"], function (done) {
// Watch all javascript files and package.json
gulp.watch(["js/**/*.js", "package.json"], ["retire"]);
});
gulp.task("retire", function () {
// Spawn Retire.js as a child process
// You can optionally add option parameters to the second argument (array)
var child = spawn("retire", [], { cwd: process.cwd() });
child.stdout.setEncoding("utf8");
child.stdout.on("data", function (data) {
log(data);
});
child.stderr.setEncoding("utf8");
child.stderr.on("data", function (data) {
log(c.red(data));
beeper();
});
});
Donate
Donations will be used to fund the maintainance of the tool and vulnerability repo.
관련 프로젝트 살펴보기
trimstray/the-book-of-secret-knowledge
영감을 주는 목록, 매뉴얼, 치트시트, 블로그, 팁, 원라이너, CLI/웹 도구 등을 모은 컬렉션.
256,831 스타Hack-with-Github/Awesome-Hacking
해커, 펜테스터, 보안 연구자를 위한 다양한 Awesome 목록 모음.
124,920 스타swisskyrepo/PayloadsAllTheThings
웹 애플리케이션 보안과 모의 침투 테스트/CTF에 유용한 페이로드 및 우회 방법 목록.
82,475 스타caddyserver/caddy
빠르고 확장 가능한 멀티플랫폼 HTTP/1-2-3 웹 서버이며, 자동 HTTPS를 지원합니다
78,878 스타