Skip to content

Commit

Permalink
Handle Snyk advisory with missing CVE
Browse files Browse the repository at this point in the history
Signed-off-by: Keshav Priyadarshi <[email protected]>
  • Loading branch information
keshav-space committed Mar 16, 2023
1 parent 52946dd commit 12e0389
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vulntotal/datasources/snyk.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def parse_html_advisory(advisory_html, snyk_id, affected) -> VendorData:
cve_span = advisory_soup.find("span", class_="cve")
if cve_span:
cve_anchor = cve_span.find("a", class_="vue--anchor")
aliases.append(cve_anchor["id"])
if cve_anchor:
aliases.append(cve_anchor.get("id"))

how_to_fix = advisory_soup.find(
"div", class_="vue--block vuln-page__instruction-block vue--block--instruction"
Expand Down

0 comments on commit 12e0389

Please sign in to comment.