Fetch a List of Vulnerabilities in Code Repository Scan

GET  /v1.3/code/{codeId}/vuln/stats

Input ParametersInput Parameters
Parameter Mandatory/Optional Data Type Description
uuid Mandatory string Specify the uuid value of an code asset.
filter Optional string Filter the vulnerability details of a scanned code asset by providing a query using Qualys syntax.
sort Optional string Sort the results using a Qualys token.

Default value: vulnerabilities.qid:asc

Sample: Fetch a List of Vulnerabilities in Code Repository ScanSample: Fetch a List of Vulnerabilities in Code Repository Scan

API Request

curl -X 'GET' \
'<qualys_base_url>/csapi/v1.3/code/524ea166fcc7d3c882ed2995d36d38c894975bec3991d290f83b503dff3ff327/vuln?sort=vulnerabilities.qid%3Aasc' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <token>'

API Response 

{
  "details": [
    {
      "vulnerability": null,
      "result": null,
      "lastFound": "1780493764136",
      "firstFound": "1780493764136",
      "severity": 4,
      "customerSeverity": 4,
      "port": null,
      "typeDetected": "CONFIRMED",
      "status": null,
      "risk": 40,
      "category": "SCA",
      "discoveryType": [
        "AUTHENTICATED"
      ],
      "authType": [
        "UNIX_AUTH"
      ],
      "supportedBy": [
        "CA-Windows Agent",
        "CA-Linux Agent",
        "SCA",
        "CS-Windows",
        "CS-Linux"
      ],
      "product": [
        "pip"
      ],
      "vendor": [
        "pip"
      ],
      "cveids": [
        "CVE-2026-45134"
      ],
      "threatIntel": {
        "activeAttacks": null,
        "zeroDay": null,
        "publicExploit": null,
        "highLateralMovement": null,
        "easyExploit": true,
        "highDataLoss": true,
        "noPatch": null,
        "denialOfService": null,
        "malware": null,
        "exploitKit": null,
        "publicExploitNames": null,
        "malwareNames": null,
        "exploitKitNames": null,
        "wormable": null,
        "predictedHighRisk": null,
        "privilegeEscalation": null,
        "unauthenticatedExploitation": null,
        "remoteCodeExecution": null,
        "ransomware": null,
        "solorigateSunburst": null,
        "cisaKnownExploitedVulns": null
      },
      "qid": 5012561,
      "title": "Python (Pip) Security Update for langchain (GHSA-3644-q5cj-c5c7)",
      "cvssInfo": {
        "baseScore": "8.5",
        "temporalScore": "6.3",
        "accessVector": "Network"
      },
      "cvss3Info": {
        "baseScore": "7.1",
        "temporalScore": "6.2"
      },
      "patchAvailable": true,
      "published": 1778768258000,
      "scanType": [
        "SCA"
      ],
      "qdsScore": 35,
      "isExempted": false,
      "vendorData": null,
      "software": [
        {
          "name": "langchain-classic",
          "version": "1.0.0",
          "scanType": "SCA",
          "packagePath": "libs/langchain_v1/uv.lock",
          "fixVersion": "1.0.7",
          "vulnerabilities": null
        },
        {
          "name": "langsmith",
          "version": "0.7.31",
          "scanType": "SCA",
          "packagePath": "libs/partners/huggingface/uv.lock",
          "fixVersion": "0.8.0",
          "vulnerabilities": null
        }
      ],
      "ageInDays": null,
      "fixed": null,
      "os": null
    }
  ],
  "vulnSummary": {
    "confirmed": {
      "sev1Count": 0,
      "sev5Count": 0,
      "sev2Count": 0,
      "sev4Count": 1,
      "sev3Count": 0
    },
    "potential": {
      "sev1Count": 0,
      "sev5Count": 0,
      "sev2Count": 0,
      "sev4Count": 0,
      "sev3Count": 0
    },
    "igs": {
      "sev1Count": 0,
      "sev5Count": 0,
      "sev2Count": 0,
      "sev4Count": 0,
      "sev3Count": 0
    },
    "patchAvailability": {
      "confirmed": {
        "sev1Count": 0,
        "sev5Count": 0,
        "sev2Count": 0,
        "sev4Count": 1,
        "sev3Count": 0
      },
      "potential": {
        "sev1Count": 0,
        "sev5Count": 0,
        "sev2Count": 0,
        "sev4Count": 0,
        "sev3Count": 0
      },
      "igs": {
        "sev1Count": 0,
        "sev5Count": 0,
        "sev2Count": 0,
        "sev4Count": 0,
        "sev3Count": 0
      }
    }
  }
}