gitnexus 1.6.10-rc.31 → 1.6.10-rc.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,10 +35,14 @@ export const TS_JS_TAINT_MODEL = {
35
35
  },
36
36
  ],
37
37
  sinks: [
38
- // Command execution — the command string is argument 0.
38
+ // Command execution — shell strings are arg 0; argv-form APIs also treat
39
+ // the argv array at arg 1 as command/option injection surface.
39
40
  { name: 'exec', kind: 'command-injection', args: [0], module: 'child_process' },
40
41
  { name: 'execSync', kind: 'command-injection', args: [0], module: 'child_process' },
41
- { name: 'spawn', kind: 'command-injection', args: [0], module: 'child_process' },
42
+ { name: 'spawn', kind: 'command-injection', args: [0, 1], module: 'child_process' },
43
+ { name: 'spawnSync', kind: 'command-injection', args: [0, 1], module: 'child_process' },
44
+ { name: 'execFile', kind: 'command-injection', args: [0, 1], module: 'child_process' },
45
+ { name: 'execFileSync', kind: 'command-injection', args: [0, 1], module: 'child_process' },
42
46
  // Code evaluation. `eval` takes code at 0; `new Function(...)` treats
43
47
  // EVERY argument as source text (params + body), so `args` is omitted
44
48
  // (= all positions) rather than pinned to 0.
@@ -53,9 +57,37 @@ export const TS_JS_TAINT_MODEL = {
53
57
  // (mysql2/pg/knex handles go by many names; receiver-conventional).
54
58
  { name: 'query', kind: 'sql-injection', args: [0], anyReceiver: true },
55
59
  { name: 'execute', kind: 'sql-injection', args: [0], anyReceiver: true },
60
+ // Modern DB libraries expose shorter method names with high collision
61
+ // rates (`map.get`, `task.run`, ...), so keep these receiver-conventional.
62
+ {
63
+ name: 'run',
64
+ kind: 'sql-injection',
65
+ args: [0],
66
+ receivers: ['db', 'database', 'conn', 'client', 'pool', 'stmt', 'statement', 'prepared'],
67
+ },
68
+ {
69
+ name: 'all',
70
+ kind: 'sql-injection',
71
+ args: [0],
72
+ receivers: ['db', 'database', 'conn', 'client', 'pool', 'stmt', 'statement', 'prepared'],
73
+ },
74
+ {
75
+ name: 'get',
76
+ kind: 'sql-injection',
77
+ args: [0],
78
+ receivers: ['db', 'database', 'conn', 'client', 'pool', 'stmt', 'statement', 'prepared'],
79
+ },
80
+ {
81
+ name: 'values',
82
+ kind: 'sql-injection',
83
+ args: [0],
84
+ receivers: ['db', 'database', 'conn', 'client', 'pool'],
85
+ },
86
+ { name: 'raw', kind: 'sql-injection', args: [0], receivers: ['db', 'knex', 'sequelize'] },
56
87
  // Reflected XSS — Express response writes, conventional receiver `res`.
57
88
  { name: 'send', kind: 'xss', args: [0], receivers: ['res'] },
58
89
  { name: 'write', kind: 'xss', args: [0], receivers: ['res'] },
90
+ { name: 'render', kind: 'xss', args: [0, 1], receivers: ['res'] },
59
91
  ],
60
92
  sanitizers: [
61
93
  // URL-encoding: neutralizes markup injection AND path separators
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitnexus",
3
- "version": "1.6.10-rc.31",
3
+ "version": "1.6.10-rc.32",
4
4
  "description": "Graph-powered code intelligence for AI agents. Index any codebase, query via MCP or CLI.",
5
5
  "author": "Abhigyan Patwari",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",