CVE-2026-63496: OS Command Injection in @augment-vir/node grep() Helper
Vulnerability ID: CVE-2026-63496
CVSS Score: 7.8
Published: 2026-11-18
An OS command injection vulnerability (CWE-78) exists in the @augment-vir/node package prior to version 31.73.5. The grep() utility function builds a shell command string by interpolating caller-supplied search patterns inside double quotes and executes the string through bash via runShellCommand(). Because bash evaluates command substitution expressions inside double-quoted strings, an attacker controlling the search pattern input can execute arbitrary OS commands with the privileges of the Node.js runtime.
TL;DR
@augment-vir/node versions prior to 31.73.5 are vulnerable to OS command injection in the grep() helper function because search patterns are interpolated into a bash shell command string without neutralizing command substitution syntax ($() and backticks). Upgrading to version 31.73.5 resolves the flaw by invoking /usr/bin/grep directly via child_process.spawn() without a shell.
⚠️ Exploit Status: POC
Technical Details
- Vulnerability ID: CVE-2026-63496 / GHSA-xvcc-vqjv-phqh
- Weakness Class: CWE-78 (OS Command Injection)
- Affected Component: @augment-vir/node (< 31.73.5) grep() function
- CVSS v3.1 Score: 7.8 High (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
- EPSS Score: 0.184% (8.06th percentile)
- Impact: Arbitrary OS Command Execution
- Exploit Status: Proof-of-Concept (PoC)
- CISA KEV Status: Not Listed
Affected Systems
- @augment-vir/node (npm package)
-
@augment-vir/node: < 31.73.5 (Fixed in:
31.73.5)
Code Analysis
Commit: 9e1a359
Replace shell-mediated grep execution with direct child_process.spawn('/usr/bin/grep', args), add '--' option delimiter, validate options, and redact logged arguments.
Exploit Details
- GitHub Security Advisory (GHSA-xvcc-vqjv-phqh): Official advisory and regression test suite demonstrating command substitution via $(...) in search patterns.
Mitigation Strategies
- Upgrade @augment-vir/node to version 31.73.5 or later to replace shell-mediated execution with direct binary spawning.
- Audit all application call sites invoking grep() from @augment-vir/node to identify whether external, user-controlled, or untrusted data reaches the pattern, patterns, file, dir, include, or exclude parameters.
- Implement strict input allowlisting on search patterns if immediate patching cannot be performed.
Remediation Steps:
- Run
npm install @augment-vir/node@^31.73.5in all affected projects. - Verify the installed package version using
npm list @augment-vir/nodeto ensure no transitive dependencies lock an older release (< 31.73.5). - Redeploy affected Node.js applications, CLI packages, or build services.
References
- GitHub Security Advisory: GHSA-xvcc-vqjv-phqh
- Fix Commit: 9e1a3592903a56e500959be72276ede1708c3437
- augment-vir Release v31.73.5
- NVD Vulnerability Detail: CVE-2026-63496
- CVE.org Record: CVE-2026-63496
- CVE List V5 JSON Record: CVE-2026-63496
Read the full report for CVE-2026-63496 on our website for more details including interactive diagrams and full exploit analysis.
Top comments (0)