NVD API severity filter missed 353 of 363 critical CVEs

Code on a monitor, close up

I asked the NVD API for the critical CVEs published from October 20 to 25, 2026, and got 10. The same six days hold 363 CVEs that some source scored 9.0 or higher. The severity filter reads only one of the scores, and the docs do not say which one.

The Java CVEs that never showed up

I run a small Python watcher, cve-watch, for the tools I use. It pulls CVEs from the NVD API 2.0 and from GitHub advisories, keeps the ones with a CVSS score of 9.0 or higher, and turns new ones into posts on this blog. The first version let NVD do the filtering, once with cvssV3Severity and once with cvssV4Severity:

query = {"cvssV3Severity": "CRITICAL", "pubStartDate": start, "pubEndDate": end,
         "resultsPerPage": 2000, "startIndex": index}

It found Traefik, Symfony and PHP issues, so it looked fine. But I work with Java, and the list had no Java SE CVE at all. Oracle had published two JSSE issues with a score of 9.1 in October: CVE-2026-91403 on October 21 and CVE-2026-114820 on October 24.

One CVE, two queries

This is the shortest way to see it. I ran both commands on 2026-11-23; the answer can change once NVD analyses the CVE.

curl -s 'https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-91403&cvssV3Severity=CRITICAL' \
  | jq .totalResults
0

The same CVE without the filter:

curl -s 'https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-91403' \
  | jq '.vulnerabilities[0].cve | {vulnStatus, metrics: [.metrics.cvssMetricV31[]
        | {type, baseScore: .cvssData.baseScore, baseSeverity: .cvssData.baseSeverity}]}'
{
  "vulnStatus": "Awaiting Analysis",
  "metrics": [
    {
      "type": "Secondary",
      "baseScore": 9.1,
      "baseSeverity": "CRITICAL"
    }
  ]
}

The CVE has a CVSS v3.1 score with baseSeverity: CRITICAL, and the filter still returns nothing. The difference is type. The score comes from Oracle, which published the CVE as its CNA (the source field holds an Oracle address), so it is Secondary. NVD has not analysed the CVE yet, so there is no Primary score, and the filter has nothing to match.

What cvssV3Severity really matches in the NVD API

The API documentation describes the parameter in one sentence: "This parameter returns only the CVEs that match the provided CVSSv3 qualitative severity rating." It does not say whose rating. So I counted one window both ways on 2026-11-23, paging through every result:

CVEs published October 20 to 25, 2026Count
All, no severity filter3,674
A v3.x or v4 base score of 9.0 or more from any source, counted locally363
cvssV3Severity=CRITICAL10
cvssV4Severity=CRITICAL0

All 10 hits have a Primary v3.1 score of 9.0 or more. Eight of those come from NVD and two from VulnCheck, so Primary does not always mean NVD, but it is the only score the filter looks at.

Of the 353 CVEs the filter did not return, 352 have no Primary score at all. The other one has a Primary score below 9.0, so there NVD disagrees with the other source. For CVSS v4 it is even clearer: 82 CVEs in the window have a v4 score of 9.0 or more, none of them is Primary, and the v4 filter returns zero.

These sources gave the critical scores the filter ignored (a CVE can count for more than one):

SourceCVEs
CISA-ADP68
Oracle66
VulnCheck35
HPE32
Cisco Talos30
Patchstack23
GitHub19

Waiting for NVD does not fix it either. The missed CVEs had these statuses: Deferred 134, Awaiting Analysis 122, Analyzed 57, Modified 34. Even the 57 analysed ones have no critical Primary score.

Scoring locally instead

The fix is to drop the severity parameter, page through every CVE in the window and score it on my side. This is the real function; I rewrote its comment in English:

def nvd(start, end, field):
    # no severity filter: it skips Secondary scores, and most new CVEs only have those
    for low, high in windows(start, end):
        index = 0
        while True:
            query = {f"{field}StartDate": stamp(low), f"{field}EndDate": stamp(high),
                     "resultsPerPage": 2000, "startIndex": index}
            data, _ = fetch(NVD + "?" + urllib.parse.urlencode(query))
            time.sleep(NVD_PAUSE)
            for item in data.get("vulnerabilities", []):
                yield item["cve"]
            index += data.get("resultsPerPage") or 0
            if not data.get("resultsPerPage") or index >= data.get("totalResults", 0):
                break

The score is the highest v3.x or v4 base score from any source:

score = max((m["cvssData"]["baseScore"] for key, items in metrics.items()
             if key.startswith("cvssMetricV") and key != "cvssMetricV2"
             for m in items if "cvssData" in m), default=0)
if score < MIN_SCORE:  # 9.0
    return None

Downloading everything sounds expensive, but it is fine. The docs allow date ranges of up to 120 days and 5 requests in a rolling 30 second window without an API key, and they recommend sleeping six seconds between requests. windows() cuts the range into 120-day pieces and NVD_PAUSE is 6.5 seconds.

On 2026-11-22, the year 2026 had 105,151 published CVEs, which is 53 pages of 2,000. The full rescan of the year, GitHub advisories included, finished in 530 seconds. The daily sync uses lastModStartDate instead, and on November 21 only 458 CVEs changed, so that is one page.

The opposite problem: 552 kernel CVEs

Counting every source has its own trap. The first full rescan matched 769 CVEs, and 552 of them were Linux kernel bugs. kernel.org, the CNA for the kernel, had scored them between 9.1 and 9.8. A list of 552 critical kernel bugs in one year is not something I can act on.

So each product in the watchlist can now choose whose score counts. For the kernel, only the Primary score does:

{"name": "Linux kernel", "label": "Linux", "core": true, "check": "uname -r",
 "cpe": ["linux:linux_kernel"], "words": ["^In the Linux kernel\\b"], "score_source": "nvd"}
nvd_score = max((m["cvssData"]["baseScore"] for key, items in metrics.items()
                 if key.startswith("cvssMetricV") and key != "cvssMetricV2"
                 for m in items if "cvssData" in m and m.get("type") == "Primary"), default=0)
for product in watch:
    if product.get("score_source") == "nvd" and nvd_score < MIN_SCORE:
        continue

On 2026-11-23 the watcher held one kernel CVE for 2026 and both Java SE ones. CVE-2026-114820 is now in my Java roundup. The PHP out of memory issue on this blog was one of the 10 the filter did return, because NVD had scored it 9.8 itself.

One more field to read: vulnerable

The kernel had caused trouble once before. NVD lists the platform a product runs on as a CPE match with "vulnerable": false, so a Chrome bug "on Linux" carries a linux_kernel CPE. Counting every CPE gave 48 false kernel matches from Chrome, IBM and NVIDIA products. Only matches with vulnerable: true count now:

cpes = {":".join(match["criteria"].split(":")[3:5])
        for config in cve.get("configurations", []) for node in config.get("nodes", [])
        for match in node.get("cpeMatch", []) if match.get("vulnerable")}

The fake NVD in the tests now fails if a query carries a severity parameter again:

def assertNoSeverityFilter(query):
    # the severity filter skips Secondary scores, so filter on our side
    assert not {"cvssV3Severity", "cvssV4Severity"} & set(query), query

Code on a monitor, close up

Mình hỏi NVD API danh sách CVE critical công bố từ 20 đến 25/10/2026 và chỉ nhận về 10 cái. Trong đúng sáu ngày đó có tới 363 CVE được một nguồn nào đó chấm từ 9,0 điểm trở lên. Bộ lọc severity chỉ đọc một trong các điểm đó, và tài liệu không nói là điểm nào.

Mấy CVE Java không bao giờ xuất hiện

Mình có viết một watcher nhỏ bằng Python tên cve-watch cho mấy công nghệ mình đang dùng. Nó kéo CVE từ NVD API 2.0 và GitHub advisories, giữ lại những CVE có điểm CVSS từ 9,0 trở lên, rồi biến CVE mới thành bài trên blog này. Bản đầu tiên để NVD lọc giúp, một lần với cvssV3Severity và một lần với cvssV4Severity:

query = {"cvssV3Severity": "CRITICAL", "pubStartDate": start, "pubEndDate": end,
         "resultsPerPage": 2000, "startIndex": index}

Nó bắt được lỗi của Traefik, Symfony và PHP nên nhìn thì có vẻ ổn. Nhưng mình làm Java, mà danh sách không có lấy một CVE Java SE nào. Trong khi tháng 10 Oracle đã công bố hai lỗi JSSE 9,1 điểm: CVE-2026-91403 ngày 21/10 và CVE-2026-114820 ngày 24/10.

Một CVE, hai câu query

Cách nhanh nhất để thấy vấn đề là chạy hai lệnh dưới đây. Mình chạy ngày 23/11/2026; khi NVD phân tích xong CVE thì kết quả có thể khác nhé.

curl -s 'https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-91403&cvssV3Severity=CRITICAL' \
  | jq .totalResults
0

Cũng CVE đó, bỏ bộ lọc đi:

curl -s 'https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-91403' \
  | jq '.vulnerabilities[0].cve | {vulnStatus, metrics: [.metrics.cvssMetricV31[]
        | {type, baseScore: .cvssData.baseScore, baseSeverity: .cvssData.baseSeverity}]}'
{
  "vulnStatus": "Awaiting Analysis",
  "metrics": [
    {
      "type": "Secondary",
      "baseScore": 9.1,
      "baseSeverity": "CRITICAL"
    }
  ]
}

CVE này có điểm CVSS v3.1 với baseSeverity: CRITICAL hẳn hoi, vậy mà bộ lọc vẫn trả về 0. Khác nhau nằm ở type. Điểm này do Oracle chấm, vì Oracle là CNA công bố CVE (trường source là một địa chỉ của Oracle), nên nó là Secondary. NVD chưa phân tích CVE này nên chưa có điểm Primary, và bộ lọc chẳng có gì để so.

cvssV3Severity trong NVD API thật ra lọc theo điểm nào

Tài liệu API mô tả tham số này đúng một câu: "This parameter returns only the CVEs that match the provided CVSSv3 qualitative severity rating." Không nói là rating của ai. Nên ngày 23/11/2026 mình đếm thử một khoảng thời gian theo cả hai cách, đi qua hết mọi trang kết quả:

CVE công bố từ 20 đến 25/10/2026Số lượng
Tất cả, không lọc severity3.674
Có điểm base v3.x hoặc v4 từ 9,0 trở lên, từ bất kỳ nguồn nào, tự đếm363
cvssV3Severity=CRITICAL10
cvssV4Severity=CRITICAL0

Cả 10 kết quả đều có điểm v3.1 loại Primary từ 9,0 trở lên. Tám cái do NVD chấm, hai cái do VulnCheck. Vậy Primary không phải lúc nào cũng là NVD, nhưng đó là điểm duy nhất bộ lọc nhìn vào.

Trong 353 CVE bộ lọc không trả về, 352 cái hoàn toàn không có điểm Primary. Cái còn lại có điểm Primary dưới 9,0, tức là ở đây NVD chấm khác nguồn kia. Với CVSS v4 thì còn rõ hơn: 82 CVE trong khoảng này có điểm v4 từ 9,0 trở lên, không cái nào là Primary, và bộ lọc v4 trả về 0.

Đây là những nguồn đã chấm điểm critical mà bộ lọc bỏ qua (một CVE có thể được tính cho nhiều nguồn):

NguồnSố CVE
CISA-ADP68
Oracle66
VulnCheck35
HPE32
Cisco Talos30
Patchstack23
GitHub19

Chờ NVD phân tích cũng không giải quyết được. Trạng thái của các CVE bị bỏ sót là: Deferred 134, Awaiting Analysis 122, Analyzed 57, Modified 34. Ngay cả 57 cái đã Analyzed cũng không có điểm Primary critical nào.

Tự chấm điểm ở phía mình

Cách sửa là bỏ tham số severity, đi qua hết mọi CVE trong khoảng thời gian rồi tự chấm điểm. Đây là hàm thật trong code, mình chỉ viết lại comment bằng tiếng Anh:

def nvd(start, end, field):
    # no severity filter: it skips Secondary scores, and most new CVEs only have those
    for low, high in windows(start, end):
        index = 0
        while True:
            query = {f"{field}StartDate": stamp(low), f"{field}EndDate": stamp(high),
                     "resultsPerPage": 2000, "startIndex": index}
            data, _ = fetch(NVD + "?" + urllib.parse.urlencode(query))
            time.sleep(NVD_PAUSE)
            for item in data.get("vulnerabilities", []):
                yield item["cve"]
            index += data.get("resultsPerPage") or 0
            if not data.get("resultsPerPage") or index >= data.get("totalResults", 0):
                break

Điểm của một CVE là điểm base v3.x hoặc v4 cao nhất, từ bất kỳ nguồn nào:

score = max((m["cvssData"]["baseScore"] for key, items in metrics.items()
             if key.startswith("cvssMetricV") and key != "cvssMetricV2"
             for m in items if "cvssData" in m), default=0)
if score < MIN_SCORE:  # 9.0
    return None

Nghe tải hết về thì có vẻ tốn, nhưng thực ra vẫn ổn. Tài liệu cho phép khoảng ngày tối đa 120 ngày và 5 request trong mỗi 30 giây (cửa sổ trượt) khi không có API key, và khuyên nên sleep sáu giây giữa các request. windows() cắt khoảng thời gian thành từng đoạn 120 ngày, còn NVD_PAUSE là 6,5 giây.

Ngày 22/11/2026, năm 2026 có 105.151 CVE đã công bố, tức là 53 trang, mỗi trang 2.000 cái. Lần quét lại cả năm, tính luôn GitHub advisories, chạy xong trong 530 giây. Lần đồng bộ hằng ngày thì dùng lastModStartDate, và ngày 21/11 chỉ có 458 CVE thay đổi, gói gọn trong một trang.

Vấn đề ngược lại: 552 CVE của kernel

Đếm mọi nguồn thì lại dính một cái bẫy khác. Lần quét lại đầu tiên khớp 769 CVE, trong đó 552 cái là lỗi Linux kernel. kernel.org, CNA của kernel, chấm chúng từ 9,1 đến 9,8. Một danh sách 552 lỗi kernel critical trong một năm thì mình không xử lý nổi.

Nên giờ mỗi sản phẩm trong watchlist tự chọn điểm của ai được tính. Với kernel thì chỉ tính điểm Primary:

{"name": "Linux kernel", "label": "Linux", "core": true, "check": "uname -r",
 "cpe": ["linux:linux_kernel"], "words": ["^In the Linux kernel\\b"], "score_source": "nvd"}
nvd_score = max((m["cvssData"]["baseScore"] for key, items in metrics.items()
                 if key.startswith("cvssMetricV") and key != "cvssMetricV2"
                 for m in items if "cvssData" in m and m.get("type") == "Primary"), default=0)
for product in watch:
    if product.get("score_source") == "nvd" and nvd_score < MIN_SCORE:
        continue

Ngày 23/11/2026 watcher giữ một CVE kernel của năm 2026 và cả hai CVE Java SE. CVE-2026-114820 giờ đã nằm trong bài tổng hợp Java của mình. Còn lỗi out of memory của PHP trên blog này là một trong 10 cái bộ lọc có trả về, vì chính NVD đã chấm nó 9,8 điểm.

Thêm một trường cần đọc: vulnerable

Trước đó kernel cũng đã gây rắc rối một lần. NVD ghi nền tảng mà sản phẩm chạy trên đó thành một CPE match với "vulnerable": false, nên một lỗi Chrome "trên Linux" cũng mang CPE linux_kernel. Đếm hết mọi CPE thì ra 48 kết quả kernel sai, từ sản phẩm của Chrome, IBM và NVIDIA. Giờ chỉ tính các match có vulnerable: true:

cpes = {":".join(match["criteria"].split(":")[3:5])
        for config in cve.get("configurations", []) for node in config.get("nodes", [])
        for match in node.get("cpeMatch", []) if match.get("vulnerable")}

Bản NVD giả trong test giờ sẽ fail ngay nếu có query nào mang lại tham số severity:

def assertNoSeverityFilter(query):
    # the severity filter skips Secondary scores, so filter on our side
    assert not {"cvssV3Severity", "cvssV4Severity"} & set(query), query

Code on a monitor, close up

Ich habe die NVD API nach den kritischen CVEs gefragt, die vom 20. bis 25. Oktober 2026 veröffentlicht wurden, und 10 bekommen. In denselben sechs Tagen gibt es 363 CVEs, die irgendeine Quelle mit 9,0 oder höher bewertet hat. Der Severity-Filter liest nur einen der Scores, und die Doku sagt nicht, welchen.

Die Java-CVEs, die nie auftauchten

Ich betreibe einen kleinen Watcher in Python, cve-watch, für die Tools, die ich nutze. Er holt CVEs aus der NVD API 2.0 und aus den GitHub Advisories, behält die mit einem CVSS-Score ab 9,0 und macht aus neuen CVEs Beiträge auf diesem Blog. Die erste Version hat NVD filtern lassen, einmal mit cvssV3Severity und einmal mit cvssV4Severity:

query = {"cvssV3Severity": "CRITICAL", "pubStartDate": start, "pubEndDate": end,
         "resultsPerPage": 2000, "startIndex": index}

Er fand Lücken in Traefik, Symfony und PHP, also sah alles gut aus. Aber ich arbeite mit Java, und in der Liste stand kein einziges Java-SE-CVE. Dabei hatte Oracle im Oktober zwei JSSE-Lücken mit 9,1 veröffentlicht: CVE-2026-91403 am 21. Oktober und CVE-2026-114820 am 24. Oktober.

Ein CVE, zwei Abfragen

So siehst du es am schnellsten. Ich habe beide Befehle am 2026-11-23 ausgeführt; sobald NVD das CVE analysiert hat, kann die Antwort anders aussehen.

curl -s 'https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-91403&cvssV3Severity=CRITICAL' \
  | jq .totalResults
0

Dasselbe CVE ohne Filter:

curl -s 'https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-91403' \
  | jq '.vulnerabilities[0].cve | {vulnStatus, metrics: [.metrics.cvssMetricV31[]
        | {type, baseScore: .cvssData.baseScore, baseSeverity: .cvssData.baseSeverity}]}'
{
  "vulnStatus": "Awaiting Analysis",
  "metrics": [
    {
      "type": "Secondary",
      "baseScore": 9.1,
      "baseSeverity": "CRITICAL"
    }
  ]
}

Das CVE hat einen CVSS-v3.1-Score mit baseSeverity: CRITICAL, und der Filter liefert trotzdem nichts. Der Unterschied steckt in type. Der Score kommt von Oracle, das das CVE als CNA veröffentlicht hat (im Feld source steht eine Oracle-Adresse), deshalb ist er Secondary. NVD hat das CVE noch nicht analysiert, es gibt also keinen Primary-Score, und der Filter hat nichts, worauf er passen könnte.

Was cvssV3Severity in der NVD API wirklich filtert

Die API-Dokumentation beschreibt den Parameter in einem Satz: "This parameter returns only the CVEs that match the provided CVSSv3 qualitative severity rating." Wessen Rating, steht da nicht. Also habe ich am 2026-11-23 ein Zeitfenster auf beide Arten gezählt und dabei alle Seiten durchgeblättert:

CVEs, veröffentlicht vom 20. bis 25. Oktober 2026Anzahl
Alle, ohne Severity-Filter3.674
Base Score v3.x oder v4 ab 9,0 aus beliebiger Quelle, lokal gezählt363
cvssV3Severity=CRITICAL10
cvssV4Severity=CRITICAL0

Alle 10 Treffer haben einen Primary-Score v3.1 ab 9,0. Acht davon stammen von NVD und zwei von VulnCheck. Primary heißt also nicht immer NVD, aber es ist der einzige Score, den der Filter anschaut.

Von den 353 CVEs, die der Filter nicht geliefert hat, haben 352 überhaupt keinen Primary-Score. Das letzte hat einen Primary-Score unter 9,0. Da ist NVD anderer Meinung als die andere Quelle. Bei CVSS v4 ist es noch deutlicher: 82 CVEs im Fenster haben einen v4-Score ab 9,0, keiner davon ist Primary, und der v4-Filter liefert null.

Diese Quellen haben die kritischen Scores vergeben, die der Filter ignoriert hat (ein CVE kann bei mehreren Quellen zählen):

QuelleCVEs
CISA-ADP68
Oracle66
VulnCheck35
HPE32
Cisco Talos30
Patchstack23
GitHub19

Auf NVD zu warten hilft auch nicht. Die übersehenen CVEs hatten diese Status: Deferred 134, Awaiting Analysis 122, Analyzed 57, Modified 34. Selbst die 57 analysierten haben keinen kritischen Primary-Score.

Stattdessen lokal bewerten

Die Lösung: den Severity-Parameter weglassen, alle CVEs im Fenster durchblättern und selbst bewerten. Das ist die echte Funktion, nur den Kommentar habe ich auf Englisch neu geschrieben:

def nvd(start, end, field):
    # no severity filter: it skips Secondary scores, and most new CVEs only have those
    for low, high in windows(start, end):
        index = 0
        while True:
            query = {f"{field}StartDate": stamp(low), f"{field}EndDate": stamp(high),
                     "resultsPerPage": 2000, "startIndex": index}
            data, _ = fetch(NVD + "?" + urllib.parse.urlencode(query))
            time.sleep(NVD_PAUSE)
            for item in data.get("vulnerabilities", []):
                yield item["cve"]
            index += data.get("resultsPerPage") or 0
            if not data.get("resultsPerPage") or index >= data.get("totalResults", 0):
                break

Der Score ist der höchste Base Score v3.x oder v4 aus beliebiger Quelle:

score = max((m["cvssData"]["baseScore"] for key, items in metrics.items()
             if key.startswith("cvssMetricV") and key != "cvssMetricV2"
             for m in items if "cvssData" in m), default=0)
if score < MIN_SCORE:  # 9.0
    return None

Alles herunterzuladen klingt teuer, ist aber kein Problem. Laut Doku sind Zeiträume bis 120 Tage erlaubt und ohne API Key 5 Requests in einem gleitenden 30-Sekunden-Fenster. Empfohlen werden sechs Sekunden Pause zwischen den Requests. windows() teilt den Zeitraum in Stücke von 120 Tagen, und NVD_PAUSE ist 6,5 Sekunden.

Am 2026-11-22 hatte das Jahr 2026 genau 105.151 veröffentlichte CVEs, also 53 Seiten mit je 2.000. Der komplette Rescan des Jahres, GitHub Advisories eingeschlossen, war nach 530 Sekunden fertig. Der tägliche Sync nutzt stattdessen lastModStartDate, und am 21. November haben sich nur 458 CVEs geändert, das ist eine Seite.

Das umgekehrte Problem: 552 Kernel-CVEs

Jede Quelle zu zählen hat eine eigene Falle. Der erste komplette Rescan fand 769 CVEs, und 552 davon waren Bugs im Linux-Kernel. kernel.org, die CNA für den Kernel, hatte sie mit 9,1 bis 9,8 bewertet. Mit einer Liste von 552 kritischen Kernel-Bugs in einem Jahr kann ich nichts anfangen.

Deshalb kann jetzt jedes Produkt in der Watchlist wählen, wessen Score zählt. Beim Kernel zählt nur der Primary-Score:

{"name": "Linux kernel", "label": "Linux", "core": true, "check": "uname -r",
 "cpe": ["linux:linux_kernel"], "words": ["^In the Linux kernel\\b"], "score_source": "nvd"}
nvd_score = max((m["cvssData"]["baseScore"] for key, items in metrics.items()
                 if key.startswith("cvssMetricV") and key != "cvssMetricV2"
                 for m in items if "cvssData" in m and m.get("type") == "Primary"), default=0)
for product in watch:
    if product.get("score_source") == "nvd" and nvd_score < MIN_SCORE:
        continue

Am 2026-11-23 hatte der Watcher ein Kernel-CVE für 2026 und beide Java-SE-CVEs. CVE-2026-114820 steht jetzt in meiner Java-Übersicht. Die PHP-Lücke mit Out of Memory hier im Blog war eins der 10 CVEs, die der Filter geliefert hat, weil NVD sie selbst mit 9,8 bewertet hatte.

Noch ein Feld, das du lesen solltest: vulnerable

Der Kernel hatte schon vorher Ärger gemacht. NVD listet die Plattform, auf der ein Produkt läuft, als CPE-Match mit "vulnerable": false. Ein Chrome-Bug "unter Linux" trägt deshalb ein linux_kernel-CPE. Alle CPEs zu zählen ergab 48 falsche Kernel-Treffer aus Produkten von Chrome, IBM und NVIDIA. Jetzt zählen nur Matches mit vulnerable: true:

cpes = {":".join(match["criteria"].split(":")[3:5])
        for config in cve.get("configurations", []) for node in config.get("nodes", [])
        for match in node.get("cpeMatch", []) if match.get("vulnerable")}

Das NVD-Fake in den Tests schlägt jetzt fehl, wenn eine Abfrage wieder einen Severity-Parameter mitschickt:

def assertNoSeverityFilter(query):
    # the severity filter skips Secondary scores, so filter on our side
    assert not {"cvssV3Severity", "cvssV4Severity"} & set(query), query

0 nhận xét:

Đăng nhận xét