Skip to main content
Security & Audit/Security
POSTSecuritySince 1.0SynchronousAuth Required

ImportCVERules

Import CVE vulnerability rules into the system for scanning.

Execution Availability

Try It Out

Submit a mock request using the current auth context and example-driven inputs.

Request Inputs

Body Fields

  • rulesListRequired

    List of CVE rules to import into the system

    Example: (nested array)

    • cveIdString

      CVE identifier in standard format

      Example: CVE-2021-44228

    • severityString

      Severity level of the vulnerability

      Example: CVE_SEVERITY_UNSPECIFIED

    • cvssScoreLong

      CVSS base score for this vulnerability

      Example: 9.8

    • descriptionString

      Human-readable description of the vulnerability

      Example: Remote code execution via Log4Shell

    • affectedPackagesList

      List of packages affected by this CVE rule

      Example: (nested array)

      • nameString

        Package name affected by the CVE vulnerability

        Example: openssl

      • affectedVersionsRangeString

        Version range expression describing affected versions

        Example: >=1.0.0,<1.1.1l

      • fixVersionString

        Version in which the vulnerability is fixed

        Example: 1.1.1l

    • fixVersionString

      Version that resolves this CVE

      Example: 2.17.0

Responses

200 OK

On success, this API returns the following response structure.

  • importedInteger

    Number of CVE rules successfully imported

    Example: 500

Endpoint

POST/api/v1/security/cve-rules/import

/api/v1/security/cve-rules/import

Operation ID

ImportCVERules

Permalink

Request Example

curl -X POST '{host}/api/v1/security/cve-rules/import' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"rules":"(nested array)"}'

Response Example

200
{
  "imported": 500
}

Change History

This API has no change history records yet.

View all change history