Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
tools: update undici CPE in vuln checking script
This changes the search method for `undici` on the NVD database.
Before, since `undici` did not have a CPE assigned, the search
was by keyword. Now that a CPE was assigned, it is used to query
for new vulnerabilities.
  • Loading branch information
facutuesca committed Aug 4, 2022
commit 1887ff70723d6a59567ba2d0ac7d0cbce22aae63
4 changes: 3 additions & 1 deletion tools/dep_checker/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def get_cpe(self) -> Optional[str]:
version=vp.get_libuv_version(), cpe=CPE(vendor="libuv_project", product="libuv")
),
"undici": Dependency(
version=vp.get_undici_version(), cpe=None, keyword="undici", npm_name="undici"
version=vp.get_undici_version(),
cpe=CPE(vendor="nodejs", product="undici"),
npm_name="undici",
),
"OpenSSL": Dependency(
version=vp.get_openssl_version(), cpe=CPE(vendor="openssl", product="openssl")
Expand Down