# NPM Package Dependency Vulnerability Scanner

> NPM Package Dependency Vulnerability Scanner is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-15).

Checks one or more npm packages for known security vulnerabilities and returns risk levels, CVE counts, and upgrade recommendations.

## Facts

- Endpoint: GET https://api.firstmention.uk/s/websearch/deps?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-package-dependency-vulnerability-scanner-13e019dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lQr13yr4uB_XXj07nY9I5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability npm-package-dependency-vulnerability-scanner-13e019dd
```

Example prompt: Can you check whether lodash@4.17.0 and express@4.17.1 have any known security vulnerabilities and tell me how risky they are to use?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call security check on specific npm packages without setting up a full dependency audit tool. It is ideal for agent workflows that need to gate deployments, evaluate new libraries, or triage security alerts on individual packages. Prefer this over generic web search for vulnerability info when you need structured, machine-readable risk data with severity levels and counts.

## Known failure modes

- Unknown or misspelled package name returns no vulnerability data
- Unsupported ecosystem (non-npm) returns validation error
- Missing required 'packages' query parameter returns 400 error
- Payment not included or insufficient USDC triggers 402 Payment Required
- Rate limiting or network timeout results in 503 or timeout error

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.

## Output

Returns a JSON object with ok status, a summary (packages checked, packages with vulnerabilities, total vulnerabilities, highest severity), and a per-package breakdown (package name, version, latest version, risk level, vulnerability count) plus a plain-English upgrade recommendation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "q": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "latest": {
       "type": "string"
      },
      "package": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "name": "express",
  "risk": "low"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-package-dependency-vulnerability-scanner-13e019dd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
