CodeQL security queries are associated with Common Weakness Enumeration (CWE) classifications. CWE provides standardized categories for classes of software weaknesses, such as improper input validation, path traversal, or SQL injection. GitHub CodeQL query metadata and alert tags can contain CWE identifiers, and GitHub allows code scanning alerts to be filtered by CWE tags. CVEs identify specific publicly disclosed vulnerabilities rather than general weakness categories in source-code analysis. A GHSA identifies a GitHub Security Advisory, while VEX communicates whether a product is affected by a known vulnerability. For CodeQL findings, CWE is therefore the relevant classification system used to describe the type of weakness represented by an alert. GitHub's code scanning API also exposes CodeQL rules containing external/cwe/... tags.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit