fleet/server/vulnerabilities
Konstantin Sykulev a599889152
Improved cpe deterministic matching (#42325)
**Related issue:** Resolves #41644

There are two cases that exist in the cpe database where this generic
logic could not be applied.

django from python_packages:
gofiber:django
djangoproject:django

npm from npm_packages:
microsoft:npm
npmjs:npm

These will require individual cve overrides that is outside the scope of
this task.

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.

- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements), JS
inline code is prevented especially for url redirects, and untrusted
data interpolated into shell scripts/commands is validated against shell
metacharacters.

## Testing

- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Enhanced CPE (Common Platform Enumeration) matching to reduce
non-deterministic vendor selection when multiple vendors exist for the
same software product. The algorithm now incorporates software ecosystem
information to ensure more accurate and consistent vulnerability
resolution across package types.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-03-24 17:48:02 -05:00
..
customcve Migrating vulnerabilities pkgs to slog. (#40106) 2026-02-20 15:36:38 -06:00
goval_dictionary Migrating vulnerabilities pkgs to slog. (#40106) 2026-02-20 15:36:38 -06:00
io Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
macoffice Vulnerabilities cron optimization (#39820) 2026-02-18 13:59:15 -06:00
msrc Differentiate between Windows Server Core and full desktop installations (#42034) 2026-03-21 10:03:57 -05:00
nvd Improved cpe deterministic matching (#42325) 2026-03-24 17:48:02 -05:00
oval Vulnerabilities cron optimization (#39820) 2026-02-18 13:59:15 -06:00
testdata Added vulnerability scanning support for Windows Server 2025 hosts (#41232) 2026-03-10 14:03:59 -05:00
utils Add gosimple linter (#23250) 2024-10-29 14:17:51 -05:00