Dev.to Security 🔐 Cybersecurity 👁 0 📖 2 min read

CVE-2026-63496: CVE-2026-63496: OS Command Injection in @augment-vir/node grep() Helper

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-vi

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

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:

  1. Run npm install @augment-vir/node@^31.73.5 in all affected projects.
  2. Verify the installed package version using npm list @augment-vir/node to ensure no transitive dependencies lock an older release (< 31.73.5).
  3. Redeploy affected Node.js applications, CLI packages, or build services.

References

Read the full report for CVE-2026-63496 on our website for more details including interactive diagrams and full exploit analysis.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.