# Package Safety & Vulnerability Checker

> Package Safety & Vulnerability Checker is a paid API for AI agents from toolsmith-api.dassad10.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Checks a package (npm, PyPI, Go, Maven, cargo, RubyGems, NuGet) for known vulnerabilities, deprecation status, license, repo health, and returns a safety verdict

## Facts

- Endpoint: GET https://toolsmith-api.dassad10.workers.dev/t/package/check
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/package-safety-vulnerability-checker-52a62480
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dGMlgOZ4GrjFQNW-psGoK

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 package-safety-vulnerability-checker-52a62480
```

Example prompt: Is the npm package 'axios' version 1.4.0 safe to use? Give me any known CVEs, the license, and an overall safety verdict.

## When to prefer this

Use this endpoint when an AI agent needs a quick, multi-signal safety assessment of a specific open-source package dependency before recommending or using it in code. It aggregates vulnerability databases (OSV/CVE), repo health, and license data into a single verdict, avoiding the need to query multiple sources. Prefer over raw CVE databases when you need a human-readable ok/caution/avoid decision rather than raw vulnerability data.

## Known failure modes

- Package not found in the specified ecosystem — returns error or empty vulnerability list
- Ecosystem not recognized or unsupported — returns 400-style error
- Version string malformed or not found — may fall back to latest version check
- Upstream OSV/CVE data temporarily unavailable — may return stale or partial results
- Rate limit or payment failure — returns 402 or 429 error

## How this service works

Is this dependency safe to use? Pass a package name (npm, PyPI, Go, Maven, crates.io, RubyGems, NuGet) and optional version: returns known vulnerabilities (OSV/CVE with CVSS and fixed-in version), deprecation status, license, latest version, repo health (stars, OpenSSF Scorecard) and an overall ok/caution/avoid verdict. JSON response. $0.01 USDC per call, pay via x402, no API key.

## Output

A JSON object containing: list of known vulnerabilities with CVE/OSV IDs, CVSS scores, and fixed-in versions; deprecation status; SPDX license identifier; latest available version; repository health signals (stars, OpenSSF Scorecard); and an overall verdict of ok, caution, or avoid.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "eco": {
       "enum": [
        "npm",
        "pypi",
        "go",
        "maven",
        "cargo",
        "rubygems",
        "nuget"
       ],
       "type": "string",
       "description": "Ecosystem, default npm"
      },
      "name": {
       "type": "string",
       "description": "Package name, e.g. express or @scope/pkg"
      },
      "version": {
       "type": "string",
       "description": "Version to check, default latest"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "package": "express",
  "project": {
   "stars": 65000,
   "scorecard": 6.8
  },
  "verdict": "caution",
  "version": "4.16.0",
  "latestVersion": "5.2.1",
  "vulnerabilities": [
   {
    "id": "GHSA-...",
    "cve": "CVE-2024-...",
    "cvss": 6.1,
    "fixedIn": "4.19.2"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/package-safety-vulnerability-checker-52a62480/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolsmith-api.dassad10.workers.dev](https://www.zero.xyz/host/toolsmith-api.dassad10.workers.dev/llms.txt)
