JSON2YAML is a Python-based utility that simplifies the process of converting CVE (Common Vulnerabilities and Exposures) data from JSON format into well-structured YAML files. This tool allows security analysts and developers to easily manage, analyze, and integrate CVE data into their vulnerability management systems.
With JSON2YAML, you can seamlessly convert detailed CVE records into a readable YAML format, making it easier to work with tools that require YAML files or to maintain your own vulnerability databases.
- Automatic CVE Parsing: Automatically extracts the CVE number from the provided JSON data and uses it as the filename for the YAML output.
- Structured Output: Converts raw CVE JSON data into a neatly formatted YAML file, retaining important information such as descriptions, CVSS scores, references, and affected software.
- Error Handling: Provides error messages when the required CVE data is missing or improperly formatted.
- Easy-to-Use: A simple, command-line based tool that converts individual CVEs or batches of CVE data quickly and efficiently.
Provide a JSON file with CVE details such as ID, description, CVSS score, references, and affected products.
A neatly formatted YAML file with structured CVE information.
git clone https://github.com/whitehatboy005/JSON2YAML-CVE
cd JSON2YAML-CVE
pip install -r requirements.txt
To convert a CVE JSON file to YAML, run the script:
python json2yaml.py
- Input the path to your JSON file when prompted.
- The script will automatically generate a YAML file named after the CVE ID.
Contributions are welcome! If you have any suggestions for improvements or bug fixes, feel free to submit a pull request.
This project is licensed under the terms of the MIT license.