Intel

AIKIDO-2026-808258

@angular/cli is vulnerable to Path Traversal

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

58

Medium Risk

This Affects:

JS@angular/cli
21.0.0 - 22.1.4
Fixed in 22.1.5
Are you affected? Scan for Free

TL;DR

The Angular CLI MCP server's get_best_practices tool resolves and reads a package.json-declared guide file from a caller-supplied workspacePath without checking that path against the MCP client's authorized workspace roots, unlike other workspace-path-consuming tools on the same server. A caller that can invoke the tool can point it at unintended locations on disk and read content outside the authorized project directories. The fix enforces the same isAllowedWorkspacePath root check used elsewhere and throws when the supplied path falls outside the authorized roots.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and run the Angular CLI MCP server (ng mcp) with a client that can supply a workspacePath outside your authorized project directories.

Background info

@angular/cli is vulnerable to Path Traversal in versions 21.0.0 - 22.1.4.

How to fix this

Upgrade the @angular/cli library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform