Markdown export of the MITRE CWE catalog for graph-oriented tools such as keep and Obsidian.
This repository contains generated Markdown documents for:
- CWE weaknesses
- CWE categories
- CWE views
- CWE external references
The source of truth is MITRE's published CWE XML catalog. The generator in src/ downloads the upstream files into .cache/ and rebuilds the Markdown corpus from those primary sources.
MITRE publishes the CWE schema and catalog at:
https://cwe.mitre.org/data/xsd/cwe_schema_latest.xsdhttps://cwe.mitre.org/data/xml/cwec_latest.xml.zip
The source data is subject to the CWE Terms of Use:
https://cwe.mitre.org/about/termsofuse.html
weaknesses/: one Markdown file per CWE weaknesscategories/: one Markdown file per CWE categoryviews/: one Markdown file per CWE viewreferences/: one Markdown file per external referencesrc/parse_cwe.py: parser and rendererspec/spec.md: export spec.cache/: ignored download cache for the original MITRE files
Rebuild everything from the original MITRE sources with:
make parseThis will:
- Download the latest schema and catalog into
.cache/ - Regenerate
categories/,views/,weaknesses/, andreferences/
To remove generated output directories:
make clean- Document identity is stored in
_id - Reference provenance uses
_source_uri - Cross-document relationships use wikilinks such as
[[CWE-20|Improper Input Validation]] - Weakness and view bodies are rendered to roughly match the section layout used on the CWE website
The repository includes MITRE's LICENSE.txt. See that file together with MITRE's published Terms of Use.