Skip to content

docs: add NVD import method comparison#15

Merged
kato83 merged 1 commit into
mainfrom
docs/nvd-import-comparison
Jul 24, 2026
Merged

docs: add NVD import method comparison#15
kato83 merged 1 commit into
mainfrom
docs/nvd-import-comparison

Conversation

@kato83

@kato83 kato83 commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

Add documentation comparing the two NVD import methods in Mayu:

  • mayu ingest --source nvd (OSV-converted from GCS bucket)
  • mayu ingest --source nvd --native (direct NVD JSON Feed 2.0)

Motivation

Users may be confused by the --native flag on --source nvd. This document clarifies what each method provides and recommends a path forward.

Key Findings

The OSV conversion tool is not a simple format conversion — it resolves CPE version ranges to Git commit hashes via tag analysis. However:

  • It does not add purl/ecosystem/package information
  • Conversion success rate is only 52–82% per year
  • The Git commit range enrichment serves C/C++ use cases that Mayu doesn't currently implement
  • NVD native provides complete CVE coverage with full CPE logic

Recommendation

Consolidate to NVD native only (--source nvd without needing --native flag). This simplifies the CLI without losing functionality.

Changes

  • docs/nvd-import-comparison.md — detailed comparison document
  • README.md / README_ja.md — links to the new document in Data Sources section

Document the investigation of what the OSV NVD-CVE-OSV converter
actually does:
- CPE→Git repository resolution
- Git commit range generation (primary enrichment)
- No purl/ecosystem/package info added
- 52-82% conversion success rate

Recommend consolidating to NVD native only, since:
- Complete CVE coverage (vs partial)
- Full CPE configuration logic preserved
- Delta update support
- The OSV enrichment (Git commit ranges) serves a use case
  Mayu doesn't currently implement

Includes Japanese translation (docs/nvd-import-comparison.ja.md)
@kato83
kato83 force-pushed the docs/nvd-import-comparison branch from 85c01d3 to 95942ec Compare July 24, 2026 15:30
@kato83
kato83 merged commit 67fda0d into main Jul 24, 2026
3 checks passed
kato83 added a commit that referenced this pull request Jul 25, 2026
docs: add NVD import method comparison
@kato83
kato83 deleted the docs/nvd-import-comparison branch July 25, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant