Skip to content

Commit 2245882

Browse files
committed
JS: Add change note and fix cwe tags
1 parent d76859b commit 2245882

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

change-notes/1.24/analysis-javascript.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
| Cross-site scripting through exception (`js/xss-through-exception`) | security, external/cwe/cwe-079, external/cwe/cwe-116 | Highlights potential XSS vulnerabilities where an exception is written to the DOM. Results are not shown on LGTM by default. |
2222
| Regular expression always matches (`js/regex/always-matches`) | correctness, regular-expressions | Highlights regular expression checks that trivially succeed by matching an empty substring. Results are shown on LGTM by default. |
2323
| Missing await (`js/missing-await`) | correctness | Highlights expressions that operate directly on a promise object in a nonsensical way, instead of awaiting its result. Results are shown on LGTM by default. |
24+
| Prototype pollution in utility function (`js/prototype-pollution-utility`) | security, external/cwe/cwe-400, external/cwe/cwe-471 | Highlights recursive copying operations that are susceptible to prototype pollution. Results are shown on LGTM by default. |
2425

2526
## Changes to existing queries
2627

javascript/ql/src/Security/CWE-400/PrototypePollutionUtility.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* @precision high
88
* @id js/prototype-pollution-utility
99
* @tags security
10-
* external/cwe/cwe-079
11-
* external/cwe/cwe-116
10+
* external/cwe/cwe-400
11+
* external/cwe/cwe-471
1212
*/
1313

1414
import javascript

0 commit comments

Comments
 (0)