apache / security-vulnogram

Vulnogram is a tool for creating and editing CVE information in CVE JSON format
https://vulnogram.github.io/
MIT License
5 stars 4 forks source link

Hide 'defaultStatus' field #125

Closed raboof closed 4 months ago

raboof commented 5 months ago

The 'defaultStatus' field leads to confusion, with some projects accidentally setting it to 'y' leading to a version range that would consider any version as 'affected'.

Hiding the 'defaultStatus' field will remove the entry from the CVE JSON entirely for new CVEs. This seems OK: the schema says either defaultStatus or a 'versions' section is required[0], and the docs for the versions[1] say "When defaultStatus is itself omitted, it defaults to unknown", which seems reasonable.

[0] https://github.com/CVEProject/cve-schema/blame/master/schema/v5.0/CVE_JSON_5.0_schema.json#L104 [1] https://github.com/CVEProject/cve-schema/blob/master/schema/v5.0/docs/versions.md#version-status-decisions

Fixes #118

JacquesLeRoux commented 4 months ago

Thanks Guys!