File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
lib/semmle/javascript/frameworks
test/library-tests/threat-models/sources Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ private class DefaultModels extends CommandLineArguments::Range {
7474 or
7575 // `require('commander').opt()` => `{a: ..., b: ...}`
7676 this = commander ( ) .getMember ( "opts" ) .getACall ( )
77+ or
78+ this = API:: moduleImport ( "yargs/yargs" ) .getReturn ( ) .getMember ( "argv" ) .asSource ( )
7779 }
7880}
7981
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const yargs = require('yargs/yargs');
1313const { hideBin } = require ( 'yargs/helpers' ) ;
1414const argv = yargs ( hideBin ( process . argv ) ) . argv ; // $ threat-source=commandargs
1515
16- SINK ( argv . foo ) ; // $ MISSING: hasFlow
16+ SINK ( argv . foo ) ; // $ hasFlow
1717
1818// older version
1919// https://www.npmjs.com/package/yargs/v/7.1.2
You can’t perform that action at this time.
0 commit comments