MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / get_summary

Function get_summary

vulnerabilities/importers/gsd.py:96–103  ·  view source on GitHub ↗

Returns a title of CVE_data_meta >> get_summary {"CVE_data_meta": {"TITLE": "DoS vulnerability: Invalid Accent Colors"} 'DoS vulnerability: Invalid Accent Colors'

(cve)

Source from the content-addressed store, hash-verified

94
95
96def get_summary(cve) -> str:
97 """
98 Returns a title of CVE_data_meta
99 >> get_summary {"CVE_data_meta": {"TITLE": "DoS vulnerability: Invalid Accent Colors"}
100 'DoS vulnerability: Invalid Accent Colors'
101 """
102 cve_data_meta = cve.get("CVE_data_meta") or {}
103 return cve_data_meta.get("TITLE") or ""
104
105
106def get_severities(cve) -> List:

Callers 2

test_get_summaryMethod · 0.90
parse_advisory_dataFunction · 0.70

Calls 1

getMethod · 0.45

Tested by 1

test_get_summaryMethod · 0.72