Skip to content

Commit 7daa648

Browse files
committed
JS: Check property name in NodeJSModule.getABulkExportedNode
1 parent 4b1f918 commit 7daa648

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

javascript/ql/lib/semmle/javascript/NodeJS.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class NodeModule extends Module {
102102
override DataFlow::Node getABulkExportedNode() {
103103
exists(DataFlow::PropWrite write |
104104
write.getBase().asExpr() = getModuleVariable().getAnAccess() and
105+
write.getPropertyName() = "exports" and
105106
result = write.getRhs()
106107
)
107108
}

0 commit comments

Comments
 (0)