Skip to content

Commit 3a20ca9

Browse files
committed
JS: Update CWE tags and severity score of code injection query
The derived security-severity score of the JS code injection query was much lower than for other languages (6.1 versus 9.3), possibly due some differences in CWE tags, such as the inclusion of CWE-079. We also add the more specific CWE-095 ("eval injection") for consistency with other languages. It is a child of CWE-094 ("code injection") which was already tagged.
1 parent c4e8af9 commit 3a20ca9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

javascript/ql/src/Security/CWE-094/CodeInjection.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
* code execution.
55
* @kind path-problem
66
* @problem.severity error
7-
* @security-severity 6.1
7+
* @security-severity 9.3
88
* @precision high
99
* @id js/code-injection
1010
* @tags security
1111
* external/cwe/cwe-094
12+
* external/cwe/cwe-095
1213
* external/cwe/cwe-079
1314
* external/cwe/cwe-116
1415
*/

0 commit comments

Comments
 (0)