# PkgGuard Dependency Vulnerability Scanner

> PkgGuard Dependency Vulnerability Scanner is a paid API for AI agents from pkgguard.agentgate.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-12-03).

Looks up known vulnerabilities (CVE/GHSA) and malicious package flags for a specific package name and version across multiple ecosystems using OSV.dev data

## Facts

- Endpoint: GET https://pkgguard.agentgate.workers.dev/v1/package?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pkgguard-dependency-vulnerability-scanner-c664f966
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EntsLhYYB_crR0XySdnvW

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 pkgguard-dependency-vulnerability-scanner-c664f966
```

Example prompt: Check if lodash version 4.17.15 on npm has any known vulnerabilities — I need the CVE IDs, severity levels, and what version I should upgrade to in order to fix them.

## When to prefer this

Use PkgGuard when you need a fast, per-package vulnerability lookup with CVE/GHSA IDs, CVSS scores, and fixed-in versions from OSV.dev, especially in automated CI/CD pipelines, coding agents, or AI-driven dependency review workflows. It supports npm, PyPI, Go, crates.io, Packagist, RubyGems, Maven, NuGet, Pub, and Hex ecosystems. Prefer this over general SCA tools when you need a lightweight, pay-per-call API rather than a full platform integration, and when OSV.dev coverage is sufficient for your threat model.

## Known failure modes

- Missing required 'name' or 'version' query params returns a 400 error
- Unknown ecosystem value may default to npm or return an error
- Package/version combination not found in OSV.dev returns empty vulns array with verdict 'safe'
- OSV.dev upstream unavailability may cause 502/503 responses
- Very new or niche packages may have incomplete advisory coverage
- Payment not provided or invalid returns 402 Payment Required

## How this service works

Dependency security scan for AI agents, coding agents and CI. Send a manifest or lockfile (package.json, package-lock.json, requirements.txt, Pipfile.lock, poetry.lock, go.mod, Cargo.lock, composer.lock) or a package list and get known vulnerabilities (CVE/GHSA ids, severity, CVSS, fixed-in versions) and confirmed-malicious packages per dependency. Data: OSV.dev (CC-BY 4.0). Informational, not a security audit.

## Output

Returns a JSON object with a verdict (e.g. 'vulnerable' or 'safe'), a list of packages each containing: vulnerability IDs (GHSA/CVE), severity (CRITICAL/HIGH/MEDIUM/LOW), CVSS score, fixed-in version list, malicious flag, and aggregate counts (vuln_count, highest_severity, advisory_count, malicious_count). Also includes source attribution (OSV.dev) and a disclaimer noting the result is informational.

## 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",
      "version"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Package name, e.g. lodash"
      },
      "version": {
       "type": "string",
       "description": "Exact version, e.g. 4.17.15"
      },
      "ecosystem": {
       "type": "string",
       "description": "One of npm, PyPI, Go, crates.io, Packagist, RubyGems, Maven, NuGet, Pub, Hex (default npm)"
      }
     },
     "description": "Search intents: package vulnerability check, is this npm package safe, cve lookup api, pypi vulnerability, malicious package check, osv lookup"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "tier": {
       "type": "string"
      },
      "source": {
       "type": "object"
      },
      "verdict": {
       "type": "string"
      },
      "packages": {
       "type": "array"
      },
      "disclaimer": {
       "type": "string"
      },
      "package_count": {
       "type": "number"
      },
      "scanned_count": {
       "type": "number"
      },
      "advisory_count": {
       "type": "number"
      },
      "unpinned_count": {
       "type": "number"
      },
      "malicious_count": {
       "type": "number"
      },
      "highest_severity": {
       "type": "string"
      },
      "vulnerable_count": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tier": "full",
  "source": {
   "name": "OSV.dev"
  },
  "verdict": "vulnerable",
  "packages": [
   {
    "name": "lodash",
    "vulns": [
     {
      "id": "GHSA-35jh-r3h4-6jhm",
      "url": "https://osv.dev/vulnerability/GHSA-35jh-r3h4-6jhm",
      "aliases": [
       "CVE-2021-23337"
      ],
      "summary": "Command Injection in lodash",
      "fixed_in": [
       "4.17.21"
      ],
      "severity": "HIGH",
      "malicious": false,
      "cvss_score": 7.2
     }
    ],
    "version": "4.17.15",
    "ecosystem": "npm",
    "malicious": false,
    "vuln_count": 6,
    "version_source": "exact",
    "highest_severity": "HIGH"
   }
  ],
  "disclaimer": "Informational: lists published advisories from OSV.dev for the versions given.",
  "package_count": 1,
  "scanned_count": 1,
  "advisory_count": 6,
  "unpinned_count": 0,
  "malicious_count": 0,
  "highest_severity": "HIGH",
  "vulnerable_count": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pkgguard-dependency-vulnerability-scanner-c664f966/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pkgguard.agentgate.workers.dev](https://www.zero.xyz/host/pkgguard.agentgate.workers.dev/llms.txt)
