cwe-data-1.0.0 is not a library.
cwe-data
CLI tool to query CWE (Common Weakness Enumeration) data.
Features
- Query Weaknesses, Categories, and Views by ID
- Search across all CWE entries by keyword
- All data embedded in binary (no external files needed at runtime)
- Auto-downloads CWE database on first build
Build
On first build, cwe.json is automatically downloaded from the CWE-CAPEC REST-API-wg repository.
Following file is downloaded: https://github.com/CWE-CAPEC/REST-API-wg/blob/main/json_repo/cwe.json
That file is split and imbedded inside the executable. So no internet access is used while using the app, only during build.
Usage
# Get by ID (numeric or with CWE prefix)
# Search by keyword (case-insensitive)
Output is JSON:
Data Source
CWE data from MITRE CWE via the CWE-CAPEC REST-API-wg repository.
License
The code in this project is licensed under the MIT or Apache 2.0 license.
All contributions, code and documentation, to this project will be similarly licensed.
CWE data is provided by MITRE. See CWE Terms of Use.