VulnerabilitiesGet a vulnerability

Get a vulnerability

Returns one finding by vulnerabilityId from list or get. Missing ids return 404.

curl -X GET "https://api.scrut.io/v1/vulnerabilities/import%23CVE-2024-1234?resourceStatus=open&fields=affectedResources%2Ctickets%2CmappedRisks" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)"
{
  "data": {
    "vulnerabilityId": "import%23CVE-2024-1234",
    "title": "public s3 bucket",
    "description": "Bucket is world-readable.",
    "status": "open",
    "severity": "high",
    "source": "import",
    "assignees": [
      {
        "name": "Alex Rivera",
        "email": "alex@example.com",
        "isPrimary": true
      }
    ],
    "firstSeen": 1704067200000,
    "cveId": "cve-2024-1234",
    "cvssScore": 7.5,
    "remediation": "Block public ACLs.",
    "stepsToReproduce": "Open the bucket URL.",
    "customFields": []
  },
  "meta": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000"
  }
}
GET
/v1/vulnerabilities/{vulnerabilityId}
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

Machine access token from POST /oauth/token. Send Authorization: Bearer $SCRUT_ACCESS_TOKEN on every /v1 request.

Machine access token from POST /oauth/token. Send Authorization: Bearer $SCRUT_ACCESS_TOKEN on every /v1 request.
path
vulnerabilityIdstring
Required

Use the vulnerabilityId returned by list or get. It is already URL-encoded, so paste it as the path segment: /v1/vulnerabilities/{vulnerabilityId}. Findings created through the API use the api%23 prefix, for example api%23VUL-5672. Findings imported from CSV use import%23, for example import%23CVE-2024-1234.

query
resourceStatusstring

Filter affected resources. Default is open and risk. Pass a comma-separated list (no spaces required). Allowed values: open, closed, acknowledged, ignored, risk.

query
fieldsstring

Optional expansions. Default get response already includes core metadata; use this to add affectedResources, tickets, or mappedRisks. Pass a comma-separated list (no spaces required). Allowed values: affectedResources, tickets, mappedRisks.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). Machine access token from POST /oauth/token. Send Authorization: Bearer $SCRUT_ACCESS_TOKEN on every /v1 request.

Path Parameters

vulnerabilityIdstring
Required

Use the vulnerabilityId returned by list or get. It is already URL-encoded, so paste it as the path segment: /v1/vulnerabilities/{vulnerabilityId}. Findings created through the API use the api%23 prefix, for example api%23VUL-5672. Findings imported from CSV use import%23, for example import%23CVE-2024-1234.

Example:
import%23CVE-2024-1234

Query Parameters

resourceStatusstring

Filter affected resources. Default is open and risk. Pass a comma-separated list (no spaces required). Allowed values: open, closed, acknowledged, ignored, risk.

Example:
open
fieldsstring

Optional expansions. Default get response already includes core metadata; use this to add affectedResources, tickets, or mappedRisks. Pass a comma-separated list (no spaces required). Allowed values: affectedResources, tickets, mappedRisks.

Example:
affectedResources,tickets,mappedRisks

Responses

dataobject
Required
metaobject
Required