Skip to content

[8.19] Search for CVE id in all search params instead of only name (#221099)#221602

Merged
maxcold merged 2 commits intoelastic:8.19from
maxcold:backport/8.19/pr-221099
May 27, 2025
Merged

[8.19] Search for CVE id in all search params instead of only name (#221099)#221602
maxcold merged 2 commits intoelastic:8.19from
maxcold:backport/8.19/pr-221099

Conversation

@maxcold
Copy link
Copy Markdown
Contributor

@maxcold maxcold commented May 27, 2025

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

…221099)

## Summary

While reviewing Tenable mapping for CDR
elastic/integrations#13636 noticed that CVE link
is not rendered for the following case

```
vulnerability.reference: [
      'http://www.nessus.org/u?5b3cb0db',
      'https://www.cve.org/CVERecord?id=CVE-2022-2068',
      'https://www.openssl.org/news/secadv/20220621.txt',
    ];
vulnerability.id: ['CVE-2022-2068']
```

due to the find utility looking only into `name` search param. Fixing
that by iterating over all params

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 684c877)
@maxcold maxcold requested a review from kibanamachine as a code owner May 27, 2025 10:43
@maxcold maxcold added the backport This PR is a backport of another PR label May 27, 2025
@maxcold maxcold enabled auto-merge (squash) May 27, 2025 10:43
@maxcold maxcold merged commit 0c9c9bd into elastic:8.19 May 27, 2025
6 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

@maxcold maxcold deleted the backport/8.19/pr-221099 branch May 27, 2025 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants