retire

Scans JavaScript dependencies for known vulnerabilities using the RetireJS database. Checks npm packages in node_modules and package.json against a database of CVEs. Use when adding new packages, reviewing dependencies, or before deploying.

podut/gitleakguard2 installsMITSynced Aug 22

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: retire
description: Scans JavaScript dependencies for known vulnerabilities using the RetireJS database. Checks npm packages in node_modules and package.json against a database of CVEs. Use when adding new packages, reviewing dependencies, or before deploying.
license: MIT
---

# retire — Vulnerable Dependency Scanner

RetireJS detects JavaScript libraries with known security vulnerabilities (CVEs).

## Scan dependencies

```bash
# Install
npm install -g retire

# Scan project
retire

# Scan with verbose output
retire --verbose

# Output JSON for CI
retire --outputformat json --outputpath retire-report.json

# Check specific package
retire --package
```

## Alternatives (built into npm)

```bash
# npm audit (always available)
npm audit

# Fix automatically
npm audit fix

# Fix including breaking changes
npm audit fix --force

# Yarn
yarn audit
```

## What it detects

- CVEs in npm packages listed in `package.json` and `package-lock.json`
- Transitive dependencies (dependencies of dependencies)
- Outdated packages with known exploits
- Packages with prototype pollution vulnerabilities
- Packages with ReDoS vulnerabilities

## Automatic trigger

When the user:
- Runs `npm install <package>` → check if the package has known CVEs
- Adds a dependency to `package.json` → warn if vulnerable version
- Asks about upgrading packages → check which ones have security fixes

Say: "Checking `<package>` for known vulnerabilities..."
Then run: `npm audit` or look up the package on `npmjs.com/advisories`

## Before every deploy

```bash
npm audit --audit-level=high
# Exit code 1 if high/critical vulnerabilities found
```

## CI/CD integration

```yaml
- name: Security audit
  run: npm audit --audit-level=moderate
```

## When vulnerabilities are found

1. Show: package name, CVE ID, severity, affected versions
2. Suggest: `npm install <package>@<safe-version>`
3. If no safe version: suggest alternative package
4. Check if the vulnerability is actually exploitable in your usage context

More Security skills

azure-cost

microsoft/azure-skills

Azure cost management: query costs, forecast spending, optimize to reduce waste. WHEN: \"Azure costs\", \"Azure bill\", \"cost breakdown\", \"how much am I spending\", \"forecast spending\", \"optimize costs\", \"reduce spending\", \"orphaned resources\", \"rightsize VMs\", \"cost spike\", \"reduce storage costs\", \"AKS cost\". DO NOT USE FOR: deploying resources, provisioning, diagnostics, or security audits.

355.6k

entra-app-registration

microsoft/azure-skills

Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.

318.9k

azure-messaging

microsoft/azure-skills

Troubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing issues, and SDK configuration problems. WHEN: event hub SDK error, service bus SDK issue, messaging connection failure, AMQP error, event processor host issue, message lock lost, message lock expired, lock renewal, lock renewal batch, send timeout, receiver disconnected, SDK troubleshooting, azure messaging SDK, event hub consumer, service bus queue issue, topic subscription error, enable logging event hub, service bus logging, eventhub python, servicebus java, eventhub javascript, servicebus dotnet, event hub checkpoint, event hub not receiving messages, service bus dead letter, batch processing lock, session lock expired, idle timeout, connection inactive, link detach, slow reconnect, session error, duplicate events, offset reset, receive batch.

310.3k

← All Security skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY