Packages

Get advisories for a package

Changed on

Returns a paginated list of security advisories for a single package identified by PURL. Intended for lazy-loading the Security tab in the package detail drawer.

get/akrites/packages/advisories

Request

  • Base URL
    https://cm.lfx.dev/api/v1
  • URL
    https://cm.lfx.dev/api/v1/akrites/packages/advisories
  • Auth
    HTTP bearer

Query parameters

purlstring required
Example:pkg:npm/%40angular/core@17.0.0

Package URL (PURL) — must start with pkg:.

pageinteger

Page number (1-based).

pageSizeinteger

Number of advisories per page (max 100).

severitystring[]

Filter by severity. Accepts comma-separated values or multiple params.

resolutionstring[]

Filter by resolution status. Accepts comma-separated values or multiple params.

criticalboolean

Filter by criticality flag (CVSS >= 7.0).

Response

Paginated advisory list.

pageinteger required
pageSizeinteger required
totalinteger required

Example response

{
  "advisories": [
    {
      "osvId": "GHSA-xxxx-xxxx-xxxx"
    }
  ]
}

Changes

    • warning

      added the new moderate enum value to the // response property for the response status

    • warning

      added the new open enum value to the // response property for the response status

    • warning

      added the new patched enum value to the // response property for the response status

    • info

      added the new optional query request parameter critical

    • info

      added the new optional query request parameter page

    • info

      added the new optional query request parameter pageSize

    • info

      added the new optional query request parameter resolution

    • info

      added the new optional query request parameter severity

    • info

      removed the medium enum value from the // response property for the response status

    • info

      added the required property // to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • warning

      deleted the query request parameter critical

    • warning

      deleted the query request parameter page

    • warning

      deleted the query request parameter pageSize

    • warning

      deleted the query request parameter resolution

    • warning

      deleted the query request parameter severity

    • warning

      added the new medium enum value to the // response property for the response status

    • info

      removed the moderate enum value from the // response property for the response status

    • info

      removed the open enum value from the // response property for the response status

    • info

      removed the patched enum value from the // response property for the response status