Skip to content

fix: replace CWE category entries with proper weakness CWEs - #18

Merged
tmendo merged 1 commit into
mainfrom
fix/cwe-category-mappings
Oct 6, 2026
Merged

tmendo merged 1 commit into
mainfrom
fix/cwe-category-mappings

Conversation

@tmendo

@tmendo tmendo commented May 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • 56 vulnerability definition markdown files reference MITRE Category CWEs instead of Weakness CWEs — categories are prohibited for vulnerability mapping
  • Updates CWE ID and CWE NAME fields in each affected file
Old CWE New CWE Files
CWE-1035 (OWASP 2017 A9) CWE-1395 — Dependency on Vulnerable Third-Party Component 47
CWE-16 (Configuration) CWE-1004 / CWE-693 / CWE-295 / CWE-299 6
CWE-264 (Permissions) CWE-757 / CWE-400 2
CWE-310 (Crypto Issues) CWE-326 — Inadequate Encryption Strength 1

Test plan

  • Verify no remaining references to CWE-1035, CWE-16, CWE-264, or CWE-310 in any .md file (grep on the branch: 0)
  • Spot-check a few files to confirm CWE NAME matches the new CWE ID

Update 2026-10-01

Rebased by reapplying the mapping onto the YAML front-matter format now on main; the original edits targeted the old # CWE ID layout and conflicted in every file. browser-xss-protection-disabled.md no longer exists on main (removed in an earlier restructure), so its change was dropped. 20 files added since (19 x CWE-1035, plus insecure-browser-xss-protection-enabled.md, CWE-16 -> CWE-693) got the same mapping. The CWE NAME was also updated for the CWE-1035 files, which kept the old OWASP category name next to the new ID in the original change.

@tmendo
tmendo requested a review from a team as a code owner May 17, 2026 17:13
Categories are prohibited for vulnerability mapping
(https://cwe.mitre.org/data/definitions/604.html). Reapplied onto the YAML
front-matter format on main, and extended to the files added since the
original change.

- CWE-1035 -> CWE-1395 (Dependency on Vulnerable Third-Party Component), 47 files
- CWE-16 -> CWE-1004 / CWE-693 / CWE-295 / CWE-299
- CWE-264 -> CWE-400 / CWE-757
- CWE-310 -> CWE-326

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tmendo
tmendo force-pushed the fix/cwe-category-mappings branch from b30b834 to af2b616 Compare October 1, 2026 10:12
@tmendo
tmendo requested a review from pavkam October 2, 2026 11:25
@tmendo
tmendo merged commit e02d74f into main Oct 6, 2026
5 checks passed
@tmendo
tmendo deleted the fix/cwe-category-mappings branch October 6, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants