npm
CVE-2026-63496
augment-virShell allows Command Injection in `grep()` via Unsanitized `searchPattern`
- Severity
- High 7.8
- Published
- 18 Nov 2026
- Last changed
- 18 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 31.73.5
- Exploit chance
- 0.4% in the next 30 daysHigher than 31% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- OS command injection (CWE-78)
- Attack
- Needs local access · No login needed · Needs someone to click or open something
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H- Also known as
- GHSA-xvcc-vqjv-phqh
- Sources
- OSV.dev and GitHub
Description
The grep() function exported by @augment-vir/node inserts caller-controlled search patterns directly into a double-quoted shell command string without sanitization (grep.ts:310). When the constructed command is passed to spawn() with shell: 'bash' (shell.ts:98-99), bash evaluates $() command substitution expressions embedded in the pattern, resulting in arbitrary OS command execution as the Node.js process user. Any downstream application that passes untrusted input to grep()'s pattern or patterns field is vulnerable to unauthenticated local (and potentially remote) code execution. CVSS Base Score: 7.8 (High).
Root cause: packages/node/src/augments/fs/grep.ts:310 maps each search pattern into the shell fragment -e "${searchPattern}" with no sanitization:
The resulting full command string is forwarded to runShellCommand (grep.ts:320), which calls streamShellCommand (shell.ts:221-224), which ultimately calls:
Affected software
| Software | Affected versions |
|---|---|
@augment-vir/nodenpm · osv:npm:@augment-vir/node |
|
About @augment-vir/node
- Weekly downloads (npm)
- 24,600npm, 24 Nov 2026
This is the only vulnerability in @augment-vir/node in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-63496
- GitHub Advisory Database https://github.com/advisories/GHSA-xvcc-vqjv-phqh