XRAY: Explanation of Xray Vuln Report's Fields
Vulnerability Reports can be generated by UI, or by API:This document provides detailed explanations of what each field means, so you may use the Xray reports more effectively for your cyber-security research and improvement.
Distinction Between V1 (Legacy) and V2 (New) Response Formats:
There is a difference between V1 (Legacy) and V2 (New) Xray Vulnerability report formats, as the data structure changes significantly between them.
- V1 (Legacy): Uses /api/v1/reports/vulnerabilities/{id}.
- Fields such as vulnerable_component, impacted_artifact, and path are returned as strings (Single values).
- NOTE: “total_rows” for V1 represents the raw count of rows in the report.
- V1 Response Structure Example:
- Fields such as vulnerable_component, impacted_artifact, and path are returned as strings (Single values).
{
"total_rows": 150,
"rows": [
{
"cves": [
{
"cve": "CVE-2023-12345",
"cvss_v2_score": 7.5,
"cvss_v2_vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P",
"cvss_v3_score": 9.8,
"cvss_v3_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"cvss_v4_score": 8.5,
"cvss_v4_vector": "CVSS:4.0/AV:N/AC:L/..."
}
],
"cvss2_max_score": 7.5,
"cvss3_max_score": 9.8,
"severity": "Critical",
"severity_source": "NVD",
"issue_id": "XRAY-123456",
"summary": "Remote code execution vulnerability...",
"vulnerable_component": "log4j:log4j:2.14.1",
"impacted_artifact": "my-app:1.0.0",
"path": "libs-release-local/com/example/my-app/1.0.0/",
"published": "2023-01-15T00:00:00Z",
"artifact_scan_time": "2023-06-20T14:30:00Z",
"fixed_versions": ["2.17.0", "2.17.1"],
"applicability": true,
"applicability_result": "applicable",
"project_keys": ["my-project"]
}
]
}
- V2 (New): Uses /api/v2/reports/vulnerabilities/{id}.
- The fields mentioned above are instead returned as Arrays.
- NOTE: “total rows” for V2 represents the aggregated rows (rows are aggregated by CVE-ID), not the raw count of rows.
- V2 Response Structure Example:
- The fields mentioned above are instead returned as Arrays.
{
"total_rows": 45,
"rows": [
{
"cves": [
{
"cve": "CVE-2023-12345",
"cvss_v2_score": 7.5,
"cvss_v2_vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P",
"cvss_v3_score": 9.8,
"cvss_v3_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"cvss_v4_score": 8.5,
"cvss_v4_vector": "CVSS:4.0/AV:N/AC:L/..."
}
],
"cvss2_max_score": 7.5,
"cvss3_max_score": 9.8,
"severity": "Critical",
"severity_source": "NVD",
"jfrog_severity": "High",
"issue_id": "XRAY-123456",
"vulnerable_components": [
"log4j:log4j:2.14.1",
"log4j:log4j:2.14.0"
],
"impacted_artifacts": [
"my-app:1.0.0",
"my-app:1.1.0"
],
"paths": [
"libs-release-local/com/example/my-app/1.0.0/",
"libs-release-local/com/example/my-app/1.1.0/"
],
"cwe": ["CWE-502", "CWE-400"],
"fixed_versions": ["2.17.0", "2.17.1"],
"applicability": true,
"applicability_result": "applicable",
"project_keys": ["my-project"]
}
]
}
Fields Common between V1 and V2:
|
Field |
JSON Key |
Type |
Description |
|
CVEs |
cves |
Array of Objects |
Array containing CVE details. Each object includes: cve, cvss_v2_score, cvss_v2_vector, cvss_v3_score, cvss_v3_vector, cvss_v4_score, cvss_v4_vector Note: In some cases, this will be a “JFSA” / JFrog-provided ID. |
|
CVSS v2 Max Score |
cvss2_max_score |
Float |
Highest CVSS v2 score across all CVEs for this issue. Refer to: https://www.first.org/cvss/v2/guide |
|
CVSS v3 Max Score |
cvss3_max_score |
Float |
Highest CVSS v3 score across all CVEs for this issue. Refer to this - https://www.first.org/cvss/v3-0/specification-document |
|
Severity |
severity |
String |
Severity rating. Valid values: Critical, High, Medium, Low, Unknown |
|
Severity Source |
severity_source |
String |
Identifies the source of the severity rating (e.g., NVD, vendor advisory). |
|
Component Physical Path |
component_physical_path |
String |
The SHA and artifact path of the scanned binary content. |
|
Impact Path |
impact_path |
Array of Strings |
Dependency chain tracing back to the vulnerability. |
|
Fixed Versions |
fixed_versions |
Array of Strings |
Available fixed versions, if any. |
|
Issue ID |
issue_id |
String |
JFrog internal issue identifier (format: XRAY-XXXXX). |
|
External Advisory Source |
external_advisory_source |
String |
Name of external advisory source (if applicable) |
|
External Advisory Severity |
external_advisory_severity |
String |
Severity from external advisory source. |
|
Project Keys |
project_keys |
Array of Strings |
Artifactory project keys the artifact belongs to. |
|
Applicability |
applicability |
Boolean (nullable) |
JFrog Advanced Security applicability result: true, false, or null |
|
Applicability Result |
applicability_result |
String |
Detailed applicability status. Valid values (in priority order): not_covered, not_supported, technology_unsupported, not_scanned, upgrade_required, rescan_required, undetermined, not_applicable, applicable |
Fields Exclusive to V1 (Legacy):|
Field |
JSON Key |
Type |
Description |
|
Summary |
summary |
String |
Brief description of the vulnerability (typically from NVD). |
|
Vulnerable Component |
vulnerable_component |
String |
Name and version of the vulnerable component. |
|
Impacted Artifact |
impacted_artifact |
String |
Name and version of the impacted artifact. |
|
Path |
path |
String |
Repository path to the artifact. |
|
Published |
published |
Timestamp |
Date when the CVE was originally published. |
|
Artifact Scan Time |
artifact_scan_time |
Timestamp |
When the artifact was scanned by Xray. |
|
Package Type |
package_type |
String |
Package type (e.g., maven, npm, docker) |
|
Provider |
provider |
String |
Source of vulnerability data (typically JFrog). |
|
Description |
description |
String |
Detailed description of the vulnerability. |
|
References |
references |
Array of Strings |
External reference URLs for the CVE. |
Fields Exclusive to New (V2):
|
Field |
JSON Key |
Type |
Description |
|
Vulnerable Components |
vulnerable_components |
Array of Strings |
List of all vulnerable component names/versions. |
|
Impacted Artifacts |
impacted_artifacts |
Array of Strings |
List of all impacted artifact names/versions. |
|
Paths |
paths |
Array of Strings |
List of all repository paths. |
|
JFrog Severity |
jfrog_severity |
String |
JFrog Research team's contextual severity assessment. Valid values: Critical, High, Medium, Low (note: “Unknown” is not valid) |
|
CWE |
cwe |
Array of Strings |
Common Weakness Enumeration IDs. Refer to - https://cwe.mitre.org/ |