Skip to content

Conversation

@ziadhany
Copy link
Collaborator

@ziadhany ziadhany commented Oct 30, 2025

Update NVD Importer v2 to use 2.0 API schema
Migrate nvd importer v1 to use 2.0 API schema

Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Add a test

Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
@ziadhany
Copy link
Collaborator Author

ziadhany commented Jan 1, 2026

NVD logs:

nvd_importer_v2.zip

from vulnerabilities.models import AdvisoryV2
from django.db.models import Count
duplicates = (
    AdvisoryV2.objects
    .values('avid')
    .annotate(count=Count('id'))
    .filter(count__gt=1)
)
len(duplicates)
Out[4]: 0

AdvisoryV2.objects.count()
Out[3]: 295380

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.

NVD Importer failing due to NVD Data Feed API changes

2 participants