CVE-API : Unofficial API for CVE.MITRE.ORG

CVE Api is a parse & filter the latest CVEs from cve.mitre.org.

Usage

http://localhost:4000/cve?target=KEYWORD

The year parameter is optional.

http://localhost:4000/cve?target=KEYWORD&year=YEAR

Examples

http://localhost:4000/cve?target=ruby%20on%20rails

http://localhost:4000/cve?target=ruby%20on%20rails&year=2020

If you want to parse the latest year, use the “latest” keyword.
http://localhost:4000/cve?target=ruby%20on%20rails&year=latest

Also Read – Fuzzowski : The Network Protocol Fuzzer

Getting Started

  • Download the project
  • bundle install
  • ruby rest.rb

Requirements

  • Ruby
  • Docker (Optional, only required if you want to run through a container.)

Environment

  • You can switch between prod & dev at config/environment.rb
  • You need to create one yourself, an example can be found here.

Healthcheck

  • The url will return a status code of 200 which means the api is healthy.
  • If 200 is not shown then you should assume there is something wrong.
  • http://localhost:4000/status

Manage Image

Access

Build Image

docker build . -t cve-api

Run Image

docker run -p 4000:4000 -d cve-api

Get id

docker ps

Stop image

docker stop ID

Remove image

docker rmi cve-api

R K

Recent Posts

Understanding the Model Context Protocol (MCP) and How It Works

Introduction to the Model Context Protocol (MCP) The Model Context Protocol (MCP) is an open…

17 hours ago

The file Command – Quickly Identify File Contents in Linux

While file extensions in Linux are optional and often misleading, the file command helps decode what a…

1 day ago

How to Use the touch Command in Linux

The touch command is one of the quickest ways to create new empty files or update timestamps…

1 day ago

How to Search Files and Folders in Linux Using the find Command

Handling large numbers of files is routine for Linux users, and that’s where the find command shines.…

1 day ago

How to Move and Rename Files in Linux with the mv Command

Managing files and directories is foundational for Linux workflows, and the mv (“move”) command makes it easy…

1 day ago

How to Create Directories in Linux with the mkdir Command

Creating directories is one of the earliest skills you'll use on a Linux system. The mkdir (make…

1 day ago