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.

PR-URL: https://github.com/nodejs/node/pull/44128
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
This commit is contained in:
Facundo Tuesca authored and Ruy Adorno committed 2022-08-22 19:37:18 -04:00
1 parent 960a20928f
commit b252f389d7
1 file changed
+3 -1
+3 -1
View File
@@ -47,7 +47,9 @@ dependencies: dict[str, Dependency] = {
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")