# CodePulse API – CVE Security Vulnerability Lookup

> CodePulse API – CVE Security Vulnerability Lookup is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Checks a specific package version against known CVE/GHSA vulnerability databases and returns whether it is vulnerable along with applicable advisory IDs.

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/security/cve
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-cve-security-vulnerability-lookup-8c807728
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VUV_qrb0Ou-OS3Kf4w4g6

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 codepulse-api-cve-security-vulnerability-lookup-8c807728 -d '<json body>'
```

Example prompt: Can you check if lodash version 4.17.15 on npm has any known CVEs or security vulnerabilities?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call CVE/GHSA check for a specific package-version pair across npm, PyPI, Go, or Crates ecosystems without managing API keys. Prefer it over manual NVD queries or full SCA tools when you need a lightweight, agent-callable lookup in an automated pipeline at low cost ($0.02 USDC per call).

## Known failure modes

- Unsupported ecosystem returns supported:false with no CVE data
- Unknown or misspelled package name may return no results or low confidence
- Very new vulnerabilities may not appear if data_as_of date lags behind disclosure
- Malformed version strings may cause lookup failures
- Network or worker errors return non-200 HTTP responses

## How this service works

Checks package names and versions against the free open-source vulnerability database OSV.dev.

## Output

Returns a JSON object indicating whether the package version is vulnerable (true/false), a list of CVE/GHSA advisory IDs if vulnerable, a confidence level (e.g. 'high'), the data freshness date, and a disclaimer. Also includes warnings and a 'supported' flag indicating whether the ecosystem/package is covered.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "required": [
      "package",
      "version"
     ],
     "properties": {
      "package": {
       "type": "string",
       "description": "Package name (e.g. lodash)"
      },
      "version": {
       "type": "string",
       "description": "Package version number (e.g. 4.17.15)"
      },
      "ecosystem": {
       "type": "string",
       "description": "Ecosystem name (npm, PyPI, Go, Crates)",
       "default": "npm"
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "cves": [
    "GHSA-48tx-fdd9-839e"
   ],
   "vulnerable": true
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-api-cve-security-vulnerability-lookup-8c807728/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
