Intel

AIKIDO-2026-674364

@inquirer/external-editor is vulnerable to Path traversal

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 6, 2026
July 6, 2026

38

CVE Score

Low

Path traversal

Are you affected? Scan for Free

TL;DR

The package previously created temp files and launched an external editor in ways that could allow path escaping from the intended temp location and/or unsafe command interpretation. The fix creates a dedicated temporary directory (mkdtempSync) and always places the temp file under it (then recursively cleans it up), and it hardens editor process launching by disabling shell execution (shell: false) and handling spawn errors.

How do I fix this?

Upgrade the @inquirer/external-editor library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

0.0.1 - 3.0.2

Fixed in 3.0.3

Background info

@inquirer/external-editor is vulnerable to Path traversal in versions 0.0.1 - 3.0.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea