Skip to content

Commit ae51fc1

Browse files
authored
Merge pull request #3597 from CVEProject/rl-search-upgrade
CVE Website UI Enable Enhanced Search Capability
2 parents 5edfcac + 272cdd4 commit ae51fc1

File tree

11 files changed

+489
-202
lines changed

11 files changed

+489
-202
lines changed

src/assets/data/NotificationBanner.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,21 @@
99
},
1010
{
1111
"contentType": "paragraph",
12-
"content": "Keyword searching of CVE Records is now available in the search box above. Keywords may include a CVE ID (e.g., CVE-2024-1234), or one or more keywords separated by a space (e.g., authorization, SQL Injection, cross site scripting, etc.). Learn more "
12+
"content": "Expanded keyword searching of CVE Records"
13+
},
14+
{
15+
"contentType": "internalLink",
16+
"link": "/ResourcesSupport/FAQs#pc_cve_list_basicssearch_cve",
17+
"linkText": "(with limitations)"
18+
},
19+
{
20+
"contentType": "paragraph",
21+
"content": "is now available in the search box above. Text may include a CVE/CWE/CAPEC ID (e.g., CVE-2024-1234), or one or more keywords (e.g., 'SQL Injection', 'man-in-the-middle', etc.). Learn more"
1322
},
1423
{
1524
"contentType": "internalLink",
1625
"link": "/Media/News/item/blog/2024/12/11/CVE-List-Keyword-Search-Now-Available",
17-
"linkText": "here"
26+
"linkText": "here."
1827
},
1928
{
2029
"contentType": "paragraph",

src/assets/data/faqs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
"questionText": "How do I search the CVE List",
273273
"questionResponseParagraphs": [
274274
"<b><i>Search Tips<i></b>",
275-
"<ul><li>By CVE ID<ul><li>Must include only one CVE ID per search.</li><li>CVE ID must include all letters, numbers, and hyphens associated with the CVE ID, e.g., CVE-2024-12345678.</li><li>“CVE” may be entered as “cve”, “CVE”, or as a combination of uppercase and lowercase, as casing is ignored during search.</li></ul></li><li>By other keyword(s)<ul><li>Must contain only alphanumeric characters, e.g., letters or numbers.</li><li>May contain one or more keywords, separated by a space.</li><li>Keywords may be entered in lowercase, uppercase, or a combination of both. Casing is ignored during search, e.g., Vulnerabilities, vulnerabilities, VULNERABILITIES.</li></ul></li></ul>"
275+
"<p>You can now search using:</p><ul style=\"list-style-type: none\"><li><b>IDs</b><ul><li>CVE ID<ul><li>specific CVE ID (e.g., \"CVE-2015-8405\")<ul><li>note that this returns records where there is a match for the CVE ID anywhere in the CVE record (e.g., \"CVE-2015-8405\" returns the CVE named, as well as any CVEs that has that CVE ID in other fields, such as in the description)</ul><li>the nominal CVE ID Year - (e.g., \"CVE-2025\" returns all CVEs reserved in the CVE-2025 year series)<ul><li>note that the year must be a full year (e.g., \"CVE-202\" is invalid and will produce no results)</ul></ul><li>CWE ID - for specific Common Weakness Enumerations (e.g., \"CWE-123\")<li>CAPEC ID - for specific Common Attack Pattern Enumerations and Classifications (e.g., \"CAPEC-123\")</ul><li><b>General</b><ul style=\"list-style-type: none\"><li>Search terms are case-insensitive and may contain words of alphanumeric and Unicode characters.<li>Search scenarios that are supported include:<ul><li>hyphenated words (e.g., \"man-in-the-middle\")<li>exact version strings (e.g., \"6.17.4\")<li>exact IPv4 strings (e.g., \"127.0.0.1\")<li>exact filenames (e.g., \"main.cpp\")<li>URLs (e.g., \"http://www.ibm.com/support/docview.wss?uid\")<li>combination of any of the above - separating terms with a space, you can search for any CVEs that contains ALL the search terms in its record (e.g., \"apache cwe-502 cve-2025\" will return all CVEs each of which containing all 3 terms)<li>note that if you provide multiple CVE IDs, the search will only return results that contains ALL CVE IDs you specify in each record, which may not be what you expect.<li>Symbols currently not supported are: () {} [] \" ' ` &lt;&gt; | ; ! ~ ^ * + %</ul></ul></ul>"
276276
]
277277
},
278278
{

src/components/NotificationBannerModule.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</span>
4646
<div>
4747
<span style="padding-left: 5px" v-for="(section, index) in notificationContents" :key="index">
48-
<span v-if="section.contentType == 'paragraph'" v-html="section.content + ' '"></span>
48+
<span v-if="section.contentType == 'paragraph'" v-html="section.content"></span>
4949
<span class="has-text-weight-bold" v-if="section.contentType == 'bold'">{{section.content}} </span>
5050
<a v-if="section.contentType == 'externalLink'" :href="section.link" target="_blank">{{section.linkText}}
5151
<span class="icon cve-icon-xxs">

src/components/PrimaryNavigation.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ export default {
207207
hasSubmenu(menuObject) {
208208
209209
return this.isPrimaryMenuItem(menuObject)
210-
&& menuObject.hasOwnProperty('primarySubmenu')
210+
&& Object.prototype.hasOwnProperty.call(menuObject, 'primarySubmenu')
211211
&& menuObject.primarySubmenu;
212212
},
213213
isPrimaryMenuItem(menuObject) {
214214
215-
return menuObject.hasOwnProperty('primaryNavPath');
215+
return Object.prototype.hasOwnProperty.call(menuObject, 'primaryNavPath');
216216
},
217217
toggleTouchScreenMenuDropdown(menuOption) {
218218
// This is only used for touch

src/components/ProductStatus.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default {
121121
const isDefaultStausNa = this.productStatusList[0].defaultStatus.length === 0;
122122
let isVersionNa = false;
123123
124-
if (this.productStatusList[0].versionsColumns.twoDTable.affected.length === 1) {
124+
if (this.productStatusList[0].versionsColumns.twoDTable.affected?.length === 1) {
125125
isVersionNa = /n\/a/.test(this.productStatusList[0].versionsColumns.twoDTable.affected[0].parentVersionRange.toString().toLowerCase());
126126
}
127127

0 commit comments

Comments
 (0)