Filter vulnerable software by 'criticality' (CVSS score) on Fleet desktop my device page
Goal
| User story |
|---|
| As an end user looking at my issues count, |
| I want to see which vulnerabilities on my device are critical |
| so that I can understand which contribute to the issues count (and take action if needed). |
Changes
Product
- [x] UI changes: Figma
- [x] CLI (fleetctl) usage changes: No changes
- [x] YAML changes: No changes
- [x] REST API changes: PR
- [x] Fleet's agent (fleetd) changes: No changes
- [x] Fleet server configuration changes: No changes
- [x] Exposed, public API endpoint changes: No changes
- [x] fleetdm.com changes: No changes
- [x] GitOps mode UI changes: No changes
- [x] GitOps generation changes: No changes
- [x] Activity changes: No changes
- [x] Permissions changes: No changes
- [x] Changes to paid features or tiers: No changes
- [x] My device and fleetdm.com/better changes: No changes
- [x] Usage statistics: No changes
- [x] Other reference documentation changes: No changes
- [x] First draft of test plan added
- [x] Once shipped, requester has been notified
- [x] Once shipped, dogfooding issue has been filed
Engineering
Spec work (@mostlikelee): See draft PR for needed changes in the API used by MyDevice. There is some frontend and some backend work on it.
- [x] Test plan is finalized (@AndreyKizimenko , can you kindly approve the test plan?)
- [x] Contributor API changes: part of the draft PR
- [x] Feature guide changes: Look for MyDevice guide and update
- [x] Database schema migrations: No need
- [x] Load testing: no need
- [x] Pre-QA load test: no need
- [x] Load testing/osquery-perf improvements: no need
- [x] This is a premium only feature: Yes
ℹ️ Please read this issue carefully and understand it. Pay special attention to UI wireframes, especially "dev notes".
Risk assessment
- Requires testing in a hosted environment: No
- Requires load testing: No
- Risk level: Low
Test plan
Make sure to go through the list and consider all events that might be related to this story, so we catch edge cases earlier.
Core flow
Test plan
Core flow
On the "My device" page (Fleet Desktop), Software tab → "Add filters". Verify the new fields behave identically to the host details page severity filter:
- [x] Selecting a severity level pre-fills the Min/Max CVSS fields with the correct band (Critical 9.0–10, High 7.0–8.9, Medium 4.0–6.9, Low 0.1–3.9).
- [x] Editing Min or Max reverts the select to "Custom severity".
- [x] Typing a custom range that exactly matches a band reverts the select to that band.
- [x] "Has known exploit" checkbox toggles the exploit filter.
- [x] Correct count of selected filters shows in the button text after Apply.
- [x] Applied filters persist across pagination and page refresh (URL query params).
- [x] Results, count, and pagination all reflect the active filters.
License gating
- [x] Premium UI: severity / Min / Max / "Has known exploit" fields are visible.
- [x] Free UI: only the "Vulnerable software" toggle is shown; the premium fields are absent.
- [x] Free user — direct API call to
GET /device/{token}/softwarewithmin_cvss_score,max_cvss_score, orexploitMUST be rejected (missing-license error), NOT silently served. - [x] Premium user — same API call returns correctly filtered results.
API
- [x]
vulnerable=truereturns only software with vulnerabilities. - [x]
min_cvss_score/max_cvss_scoreare inclusive (a CVE scored exactly 9.0 is returned formin_cvss_score=9.0; exactly 3.9 formax_cvss_score=3.9). - [x]
min_cvss_score+max_cvss_scoretogether → both bounds applied (range filter). - [x]
exploit=truereturns only software with a CISA known-exploited CVE. - [x] Filters combine correctly with existing params:
query(search),self_service,available_for_install. - [x]
countand pagination metadata reflect the filtered result set.
OS coverage
Repeat the core UI flow on each platform that reports software vulnerabilities and runs Fleet Desktop:
- [x] macOS host with vulnerable software
- [x] Windows host with vulnerable software
- [x] Linux host with vulnerable software
Edge cases
- [x]
min_cvss_score/max_cvss_score/exploitsent WITHOUTvulnerable=true→ expect 422 ("…can only be provided with vulnerable=true"). - [x]
min_cvss_score>max_cvss_score(e.g. min=8, max=2) → empty result, no server error. - [x]
min_cvss_score==max_cvss_score(e.g. 5.0–5.0) → only CVEs scored exactly 5.0. - [x] Boundary/precision: 0.1-increment values (e.g. 7.5), band edges (6.9 vs 7.0).
- [x] Out-of-range / invalid input: 0, negative, > 10, non-numeric → sane handling (0 is treated as "unset"; confirm no crash / no misleading results).
- [x] A software title with multiple CVEs of differing scores → appears under BOTH a Low filter and a Critical filter (matches if ANY CVE is in range).
- [x] Resolving a vulnerability: update/patch software so the CVE no longer applies → after the next vuln scan the title drops out of the filtered list and the count decreases.
- [x] Uninstall the vulnerable software → title drops off the filtered list.
- [x] Host with no vulnerable software (or none matching the filter) → empty state in modal.
Regression
- [x] With no new filters applied, the Software tab behaves exactly as before.
- [x] Self-service install/uninstall flows still work alongside the filters.
Supplemental testing
Testing notes
Confirmation
- [x] Engineer: Added comment to user story confirming successful completion of test plan (include any special setup, test data, or configuration used during development/testing if applicable).
- [x] QA: Added comment to user story confirming successful completion of test plan.
Engineering QA passed 👍
Note: customer-numa would like end users to see which vulnerabilities a host has in general
All test plan items confirmed ✅.
Fleet's new feature, Filters by vulnerability, Peace in the cloud city.