fixes #1391 - replacing old datasource to nist#1986
Open
ricardodemauro wants to merge 10 commits intoLissy93:masterfrom
Open
fixes #1391 - replacing old datasource to nist#1986ricardodemauro wants to merge 10 commits intoLissy93:masterfrom
ricardodemauro wants to merge 10 commits intoLissy93:masterfrom
Conversation
✅ Deploy Preview for dashy-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR updates the CVE-Vulnerabilities widget to use the NIST NVD (CVE v2.0) API instead of the deprecated cvedetails.com feed, restoring functionality that broke in November 2023.
Changes:
- Switched the
cveVulnerabilitieswidget API endpoint from the old cvedetails JSON feed to the NVD CVE 2.0 REST API. - Reworked the
CveVulnerabilitieswidget’s data fetching to call the NVD API (including pagination, total results, and filter query building). - Updated the widget’s data processing to map NVD response fields (ID, metrics, descriptions, dates) into the widget’s internal structure and removed the exploit-count display from the UI.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/utils/defaults.js | Points widgetApiEndpoints.cveVulnerabilities at the new NVD CVE 2.0 REST endpoint. |
| src/components/Widgets/CveVulnerabilities.vue | Adapts the widget to the NVD response shape, adds query-building helpers and pagination against the new endpoint, and adjusts the rendered fields accordingly. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fixing parsing of severity level
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Category: Bugfix
Overview Fixing widget cveVulnerability - replaced old datasource api to NIST api
Issue Number #1391
New Vars N/A
Screenshot N/A
Code Quality Checklist (Please complete)