Intel

AIKIDO-2026-404435

@intellectronica/ruler is vulnerable to Path Traversal

Path Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 6 days ago

63

Medium Risk

This Affects:

JS@intellectronica/ruler
0.1.0 - 0.3.42
Fixed in 0.3.43
Are you affected? Scan for Free

TL;DR

The @intellectronica/ruler CLI generates coding-agent configuration files and writes them to output paths derived from a repository's .ruler configuration. Before the fix, configured output paths (output_path, output_path_instructions, output_path_config) were resolved with path.resolve without confirming they stayed inside the project root, and generated writes, backups, and reverts followed symlinks present at the target path. A repository configuration using ../ traversal, an absolute path, or a symlink at a default output location could redirect writes to files outside the project directory when the tool ran. The fix resolves real paths and rejects output targets that escape the project root or point through symlinks.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run the tool against a repository containing an untrusted .ruler configuration or output path.

Background info

@intellectronica/ruler is vulnerable to Path Traversal in versions 0.1.0 - 0.3.42.

How to fix this

Upgrade the @intellectronica/ruler library to the patch version.