PkgSeek Security API

CVE search, detail and affected-package reverse lookup

GitHub OpenAPI

Operations 5

POST /v1/audit Run audit #
GET /v1/cnnvd/{id} Cnnvd detail #
GET /v1/cves/{id} Cve detail #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pkgseek-com:pkgseek-com-security-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pkgseek-com-security-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: pkgseek Security API
  description: Open REST API over sourced cross-distro Linux package and CLI facts. Public fact reads and correction submission require no authentication; management review endpoints require a server-side bearer token. Rate-limited responses return 429 (Retry-After where applicable); rejected credentials return 403. Protected writes accept either an x-turnstile-token header (browser, human-verified) or a scoped pk_* bearer key (machines).
  license:
    name: MIT
    identifier: MIT
  version: 0.2.9
tags:
- name: Security
  description: CVE search, detail and affected-package reverse lookup
paths:
  /v1/audit:
    post:
      tags:
      - Security
      operationId: run_audit
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuditHttpRequest'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditHttpCreated'
        '400':
          description: Invalid input
        '413':
          description: Body exceeds 2 MiB
        '422':
          description: Inventory budget exceeded; select a subset
        '429':
          description: Audit slots occupied
        '503':
          description: Audit unavailable or timed out
      security:
      - turnstile: []
      - machine_key: []
      summary: Run audit
      x-summary-source: derived
  /v1/cnnvd:
    get:
      tags:
      - Security
      operationId: cnnvd_search
      parameters:
      - name: q
        in: query
        description: CNNVD id or Chinese title
        required: false
        schema:
          type: string
      - name: severity
        in: query
        description: critical, high, medium, low or unknown
        required: false
        schema:
          type: string
      - name: limit
        in: query
        description: Page size, 1-100
        required: false
        schema:
          type: integer
          format: int64
      - name: offset
        in: query
        description: Rows to skip, max 5000
        required: false
        schema:
          type: integer
          format: int64
      responses:
        '200':
          description: Locally cached official CNNVD records
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CnnvdSearchResult'
      summary: Cnnvd search
      x-summary-source: derived
  /v1/cnnvd/{id}:
    get:
      tags:
      - Security
      operationId: cnnvd_detail
      parameters:
      - name: id
        in: path
        description: CNNVD advisory id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Locally cached official CNNVD detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CnnvdDetail'
        '404':
          description: No such CNNVD advisory
      summary: Cnnvd detail
      x-summary-source: derived
  /v1/cves:
    get:
      tags:
      - Security
      operationId: cve_search
      parameters:
      - name: q
        in: query
        description: CVE id prefix or summary text
        required: false
        schema:
          type: string
      - name: severity
        in: query
        description: critical, high, medium or low
        required: false
        schema:
          type: string
      - name: distro
        in: query
        description: Only advisories affecting this distro
        required: false
        schema:
          type: string
      - name: limit
        in: query
        description: Page size, 1-100 (default 50)
        required: false
        schema:
          type: integer
          format: int64
      - name: offset
        in: query
        description: Rows to skip, max 5000
        required: false
        schema:
          type: integer
          format: int64
      responses:
        '200':
          description: CVE search results and reverse-lookup counts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CveSearchResult'
      summary: Cve search
      x-summary-source: derived
  /v1/cves/{id}:
    get:
      tags:
      - Security
      operationId: cve_detail
      parameters:
      - name: id
        in: path
        description: CVE/advisory id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: CVE detail and affected package reverse lookup
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CveDetail'
        '404':
          description: No such advisory
      summary: Cve detail
      x-summary-source: derived
components:
  schemas:
    AuditSummaryV2:
      type: object
      required:
      - components
      - findings
      - statuses
      properties:
        components:
          type: integer
          minimum: 0
        findings:
          type: integer
          minimum: 0
        statuses:
          type: object
          additionalProperties:
            type: integer
            minimum: 0
          propertyNames:
            type: string
    CnnvdReference:
      type: object
      required:
      - id
      - name
      properties:
        id:
          type: string
        modified:
          type:
          - string
          - 'null'
        name:
          type: string
        published:
          type:
          - string
          - 'null'
        severity:
          type:
          - string
          - 'null'
        vuln_type:
          type:
          - string
          - 'null'
    InventoryScope:
      type: object
      required:
      - kind
      - distro
      - release
      - source
      properties:
        arch:
          type:
          - string
          - 'null'
        distro:
          type: string
        kind:
          type: string
        release:
          type: string
        repo:
          type:
          - string
          - 'null'
        source:
          type: string
      additionalProperties: false
    CveAffectedPackage:
      type: object
      description: Newest affected build for one package in a distro release.
      required:
      - distro
      - distro_name
      - source
      - release
      - repo
      - package
      - version
      - arches
      - evidence
      properties:
        arches:
          type: array
          items:
            type: string
        distro:
          type: string
        distro_name:
          type: string
        evidence:
          type: array
          items:
            $ref: '#/components/schemas/CveVendorEvidence'
        fixed_in:
          type:
          - string
          - 'null'
        package:
          type: string
        release:
          type: string
        repo:
          type: string
        source:
          type: string
        version:
          type: string
    CnnvdSummary:
      type: object
      required:
      - id
      - name
      - cve_ids
      properties:
        cve_ids:
          type: array
          items:
            type: string
        id:
          type: string
        modified:
          type:
          - string
          - 'null'
        name:
          type: string
        published:
          type:
          - string
          - 'null'
        severity:
          type:
          - string
          - 'null'
        vuln_type:
          type:
          - string
          - 'null'
    AuditHttpCreated:
      oneOf:
      - $ref: '#/components/schemas/AuditCreatedV2'
      - $ref: '#/components/schemas/AuditCreated'
    AuditRequest:
      type: object
      required:
      - input_type
      - text
      properties:
        distro:
          type:
          - string
          - 'null'
          description: Audit coordinate; derived from the Dockerfile FROM image when omitted.
        input_type:
          type: string
          description: '"package-list" or "dockerfile".'
        release:
          type:
          - string
          - 'null'
        target_distro:
          type:
          - string
          - 'null'
          description: Optional migration target coordinate.
        target_release:
          type:
          - string
          - 'null'
        text:
          type: string
          description: The inventory or Dockerfile text (analyzed and discarded, never stored).
    CveDetail:
      type: object
      description: Standalone CVE detail plus the affected package/release reverse lookup.
      required:
      - id
      - first_seen
      - affected_total
      - affected
      - truncated
      - cnnvd
      properties:
        affected:
          type: array
          items:
            $ref: '#/components/schemas/CveAffectedPackage'
        affected_total:
          type: integer
          format: int64
        cnnvd:
          type: array
          items:
            $ref: '#/components/schemas/CnnvdReference'
        first_seen:
          type: string
        id:
          type: string
        score:
          type:
          - number
          - 'null'
          format: double
        severity:
          type:
          - string
          - 'null'
        summary:
          type:
          - string
          - 'null'
        truncated:
          type: boolean
    CveSearchResult:
      type: object
      required:
      - items
      - total
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/CveSummary'
        total:
          type: integer
          format: int64
    AuditV2Request:
      type: object
      required:
      - schema_version
      - input_type
      - inventory_scope
      - source_confidence
      properties:
        bom: {}
        format:
          type:
          - string
          - 'null'
        input_type:
          type: string
        inventory_scope:
          $ref: '#/components/schemas/InventoryScope'
        items:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/InventoryItem'
        schema_version:
          type: integer
          format: int32
          minimum: 0
        source_confidence:
          type: string
        text:
          type:
          - string
          - 'null'
      additionalProperties: false
    AuditHttpRequest:
      oneOf:
      - $ref: '#/components/schemas/AuditV2Request'
      - $ref: '#/components/schemas/AuditRequest'
    InventoryItem:
      type: object
      required:
      - item_id
      - intent
      - name
      properties:
        arch:
          type:
          - string
          - 'null'
        installed_version:
          type:
          - string
          - 'null'
        intent:
          type: string
        item_id:
          type: string
        name:
          type: string
        purl:
          type:
          - string
          - 'null'
        repo:
          type:
          - string
          - 'null'
        source:
          type:
          - string
          - 'null'
        source_name:
          type:
          - string
          - 'null'
        source_version:
          type:
          - string
          - 'null'
      additionalProperties: false
    CnnvdSearchResult:
      type: object
      required:
      - items
      - total
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/CnnvdSummary'
        total:
          type: integer
          format: int64
    CveSummary:
      type: object
      description: One CVE search result with reverse-lookup counts.
      required:
      - id
      - first_seen
      - affected_packages
      - affected_distros
      properties:
        affected_distros:
          type: integer
          format: int64
        affected_packages:
          type: integer
          format: int64
        first_seen:
          type: string
          description: ISO timestamp for when pkgseek first ingested this advisory.
        id:
          type: string
        score:
          type:
          - number
          - 'null'
          format: double
        severity:
          type:
          - string
          - 'null'
        summary:
          type:
          - string
          - 'null'
    AuditCreatedV2:
      type: object
      required:
      - schema_version
      - report_id
      - access_token
      - summary
      properties:
        access_token:
          type: string
        report_id:
          type: string
        schema_version:
          type: integer
          format: int32
          minimum: 0
        summary:
          $ref: '#/components/schemas/AuditSummaryV2'
    CnnvdDetail:
      type: object
      required:
      - id
      - name
      - cve_ids
      properties:
        bugtraq_id:
          type:
          - string
          - 'null'
        cve_ids:
          type: array
          items:
            type: string
        description:
          type:
          - string
          - 'null'
        id:
          type: string
        modified:
          type:
          - string
          - 'null'
        name:
          type: string
        published:
          type:
          - string
          - 'null'
        severity:
          type:
          - string
          - 'null'
        solution:
          type:
          - string
          - 'null'
        source:
          type:
          - string
          - 'null'
        vuln_type:
          type:
          - string
          - 'null'
    AuditCreated:
      type: object
      required:
      - report_id
      - access_token
      - summary
      properties:
        access_token:
          type: string
          description: Capability token for the private report, returned exactly once.
        report_id:
          type: string
        summary:
          $ref: '#/components/schemas/AuditSummary'
    AuditSummary:
      type: object
      required:
      - packages
      - resolved
      - missing
      - cves_affected
      - cves_fixed
      - flags
      properties:
        cves_affected:
          type: integer
          minimum: 0
        cves_fixed:
          type: integer
          minimum: 0
        flags:
          type: integer
          minimum: 0
        lifecycle_status:
          type:
          - string
          - 'null'
        missing:
          type: integer
          minimum: 0
        packages:
          type: integer
          minimum: 0
        resolved:
          type: integer
          minimum: 0
    CveVendorEvidence:
      type: object
      description: Auditable distribution-native evidence for an effective package/CVE match.
      required:
      - provider
      - advisory_id
      - status
      - source_url
      - priority
      - verified_at
      properties:
        advisory_id:
          type: string
        fixed_in:
          type:
          - string
          - 'null'
        priority:
          type: integer
          format: int32
        provider:
          type: string
        reason:
          type:
          - string
          - 'null'
        source_url:
          type: string
        status:
          type: string
        verified_at:
          type: string
  securitySchemes:
    admin_token:
      type: http
      scheme: bearer
    machine_key:
      type: http
      scheme: bearer
    turnstile:
      type: apiKey
      in: header
      name: x-turnstile-token
    watch_token:
      type: apiKey
      in: header
      name: x-watch-token