timeline seems to not be a reliable marker for new JSON format, try a more obvious one
diff --git a/content/security/cvejsontohtml.py b/content/security/cvejsontohtml.py
index 6ab9ddd..e9f7324 100644
--- a/content/security/cvejsontohtml.py
+++ b/content/security/cvejsontohtml.py
@@ -32,10 +32,10 @@
# Filter on version and store by release(s) that fixed it
for cve in cves:
- if "timeline" in cve:
+ if "CVE_data_meta" in cve: # Old style JSON
timearray = cve["timeline"]
cve["id"] = cve["CVE_data_meta"]["ID"]
- else:
+ else: # Newer style JSON
timearray = cve["containers"]["cna"]["timeline"]
cve["id"] = cve["cveMetadata"]["cveId"]
for time in timearray: