cvelo
P2 · HighCVSS 7.8EPSS 0.4%

augment-vir: Shell Command Injection in `grep()` via Unsanitized `searchPattern`

  • CVE-2026-63496
  • GHSA-xvcc-vqjv-phqh
  • EUVD-2026-120443

Description

augment-vir is a collection of helper functions. Prior to version 31.73.5, 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. This issue has been patched in version 31.73.5.

Text from the CVE.org record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • electrovir augment-vir

    Affected versionsFixed in
    < 31.73.5none stated
  • @augment-vir/nodenpm

    Affected versionsFixed in
    before 31.73.531.73.5

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.