Intel

AIKIDO-2026-686799

@microsoft/kiota is vulnerable to Path Traversal

CVE-2026-59866Published Jul 10, 2026
July 10, 2026

93

CVE Score

Critical

Path Traversal

Are you affected? Scan for Free

TL;DR

Kiota emits the clientClassName and clientNamespaceName values from the x-ms-kiota-info OpenAPI extension without identifier or path sanitization, using them as both the generated class or namespace name and part of the output path. When generation runs without an explicit class name, an attacker-controlled description can set these values to write the generated source file outside the intended output directory and to inject text into the generated declarations. The dominant impact is arbitrary file write, with generated-code corruption as a secondary effect. The fix sanitizes both values to allowed identifier characters before they influence the path or the declaration.

How do I fix this?

Upgrade the @microsoft/kiota library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you generate a client without an explicit --class-name from an untrusted or attacker-influenced OpenAPI description.

Versions

0.0.1 - 1.32.4

Fixed in 1.32.5

Background info

@microsoft/kiota is vulnerable to Path Traversal in versions 0.0.1 - 1.32.4.

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