Skip to content

Commit 2b1f992

Browse files
committed
feat: add created date and updated date as parameters for CVE search
1 parent b29384a commit 2b1f992

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/guides/advanced_search.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ The currently supported fields are:
5555
- **project** – Search using the vendors and products subscribed in a project.
5656
- **kev** – Search based on the KEV catalog. Accepts `true` or `false`.
5757
- **epss** – Search based on EPSS score. Accepts a percentage (e.g., `epss:80`) or a decimal between 0 and 1 (e.g., `epss:'0.8'`).
58+
- **created** - Search by CVE creation date.
59+
- **updated** - Search by CVE last modification date.
5860

5961
!!! important
6062
Each field supports specific operators to refine your queries effectively:
@@ -63,6 +65,7 @@ The currently supported fields are:
6365
- `:` performs a partial (LIKE) search.
6466
- `=` performs an exact match search.
6567
- Metrics fields (**cvss20**, **cvss30**, **cvss31**, **cvss40**, **epss**) support the following comparison operators: `>`, `>=`, `<`, `<=`, `=`.
68+
- Date fields (**created**, **updated**) also support comparison operators (`>`, `>=`, `<`, `<=`, `=`). They accept a specific date in `YYYY-MM-DD` format or a relative date (e.g., `7d` for 7 days, `1m` for 1 month, or `1y` for 1 year).
6669
- **vendor**, **product**, **userTag** and **kev** fields only support the `:` operator.
6770

6871
By using fields and operators, you can fine-tune your searches to quickly find relevant CVEs based on your needs.
@@ -121,6 +124,18 @@ To search all CVEs related to the vendors and products subscribed to in a projec
121124
project:my-project AND epss>=80
122125
```
123126

127+
To search for all CVEs created in the last 7 days and updated in the last 1 day:
128+
129+
```
130+
created<=7d AND updated<=1d
131+
```
132+
133+
To search for all Apache CVEs created in October 2025:
134+
135+
```
136+
vendor:apache AND created>=2025-10-01 AND created<=2025-10-31
137+
```
138+
124139
!!! tip
125140
Using the `project` field is convenient, as it automatically expands to include all the vendors and products your project is subscribed to.
126141

0 commit comments

Comments
 (0)