Skip to content

Commit 037795f

Browse files
committed
chg: [doc] add example of the JSON format
Keep the example of the legacy format as we still support it. Update copyright years.
1 parent 72213aa commit 037795f

1 file changed

Lines changed: 30 additions & 2 deletions

File tree

README.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,34 @@ python3 lookup.py microsoft sql server | jq .
153153

154154
A CPE entry is composed of a human readable name with some references and the structured CPE name.
155155

156+
NVD CPE Dictionary 2.0 JSON feeds:
157+
158+
```json
159+
{
160+
"cpe": {
161+
"deprecated": false,
162+
"cpeName": "cpe:2.3:a:10web:form_maker:1.7.17:*:*:*:*:wordpress:*:*",
163+
"cpeNameId": "A6F0EC33-CD55-4FE2-8B55-5C0F9CC88BF9",
164+
"lastModified": "2019-06-04T16:47:17.300",
165+
"created": "2019-06-04T16:47:17.300",
166+
"titles": [
167+
{
168+
"title": "10web Form Maker 1.7.17 for WordPress",
169+
"lang": "en"
170+
}
171+
],
172+
"refs": [
173+
{
174+
"ref": "https://wordpress.org/plugins/form-maker/#developers",
175+
"type": "Change Log"
176+
}
177+
]
178+
}
179+
},
180+
```
181+
182+
Legacy XML feeds:
183+
156184
```xml
157185
<cpe-item name="cpe:/a:10web:form_maker:1.7.17::~~~wordpress~~">
158186
<title xml:lang="en-US">10web Form Maker 1.7.17 for WordPress</title>
@@ -183,8 +211,8 @@ cpe (vendor:product) per version to give a probability of the CPE appearance.
183211
Software is open source and released under a 2-Clause BSD License
184212

185213
~~~
186-
Copyright (C) 2021-2024 Alexandre Dulaunoy
187-
Copyright (C) 2021-2024 Esa Jokinen
214+
Copyright (C) 2021-2025 Alexandre Dulaunoy
215+
Copyright (C) 2021-2025 Esa Jokinen
188216
~~~
189217

190218
We welcome contributions! All contributors collectively own the CPE Guesser project. By contributing, contributors also acknowledge the [Developer Certificate of Origin](https://developercertificate.org/) when submitting pull requests or using other methods of contribution.

0 commit comments

Comments
 (0)