How to build a CVEDetails alternative website?

Step 1. Clone and setup follow the guide on CVEDataFeed repository
> git clone
Step 2. Create a mongodb, use something like mlab or MongoDB Atlas
Step 3. Setup environments and run command to import database from NVD
> python3 importonline
Step 4. Build a frontend to browser all collection from the MongoDB (like
The dashboard on

0. A story

I’m working as a security pentest and security consultant. So, Docx coding (reporting) is one of some main tasks which I work everyday. And one of some interesting bug types which I like to report is “Using Components with Known Vulnerabilities” because my simple task is paste the link’s product at the In that way, I have been big fan of CVEDetails. However, one day, as usually, after pasting the link to my report, I sent to my customer and take a coffee. One moments, my kindly customer reply “Where are my CVEs on 2020?”

No update from Nov 2019 on CVEDetails
Google just show some popular sites which not like CVEDetails
No answer on reddit
No hope
Very impulsive :-s
NVD data source from Serkan Özkan’s slide on Blackhat 2012
CPE name from NVD

1. NVD Datasource

NVD (National Vulnerability Database - is the original datasource and fastest update about the CVE (not Staff at NVD is very hard working, they release CVE update every 2h, including holiday (❤). And to make clearly, CVEDetails or CVEData or any CVE site, they just show data from NVD in difference ways.

NVD update every 2 hours
Json data and keep update

2. CPE Name

CPE (Common Platform Enumeration — is a naming scheme which is defined by NVD to unique system, software, packages as URI string.

cpe:2.3:o:linux:linux_kernel:2.4.7:*:*:*:*:*:*:* is used to define the Linux Kernel product, version 2.4.7 by Linux vendor, type is Operating system. CPE:2.3 is version of CVE.

3. Some others

There are some other problems which I resolved:

The comparison result, more details in github
#testFilter("exec code",[r"(code|command).*(execution|execute)", r"(execution|execute).*(code|command)"])
#out: 10552/10552
#testFilter("dos",[r"denial of service"])
#out: 8260/8260
#testFilter("overflow",[r"overflow", r"(restrict|crash|invalid|violat|corrupt).*(buffer|stack|heap|memory)", r"(buffer|stack|heap|memory).*(restrict|crash|invalid|violat|corrupt)"])
#out: 5242/5814
#testFilter("priv",[r"(gain|escalat).*privil", r"privil.*(gain|escalat)"])
#out: 1910/1910
privilegesRequired, userInteraction and scope are missing field of CVSS2

4. CVEData architect

This is comunity project, so the cost the importance, there 3 points to choice architect:

  • Full automation, no need operation
  • Good Vendor, Good Infrastructure
  • Free or cheap
CVEData Architect
  • Protector, https: Cloudflare ~ free
  • Front-end: Django run on Google App Engine ~ free for 1000 hours/months :-S
  • Back-end: Google Cloud Functions run in Cloud Scheduler ~ free 3 jobs
  • DB: MongoDB Atlas, Free max 500MB data, total size about 700 MB, however I have voucher for 1year ~ free 1 year (hope CVEData live over 1 year :-P)
  • Monitor: UptimeRobot ~ free
  • Source repo: Github

5. Next step

I know now trending is threat intelligence. However, classic style (like dictionary) also has its value, at least with me. In next time, I have some ideas to continues:

  • Build bug trending to catch bugbounty trending $_$
  • CVE Awards: best cve, hotest cve, voting,…
  • Add more datasource to get CVE’s author and build Hall of Fame for CVE.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store