@microsoft/kiota is vulnerable to Path Traversal
70
CVE Score
High
Path Traversal
Kiota honors the per-client and per-plugin outputPath values in a committed .kiota/workspace.json without confining them to the workspace. A malicious repository or pull request can set outputPath to an absolute or traversal path so that running the documented client or plugin generate command writes the generated files outside the workspace. This yields arbitrary file write on the developer or CI host filesystem. The fix validates each outputPath as a relative subdirectory of the workspace and aborts generation when a resolved path escapes it.
Upgrade the @microsoft/kiota library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you run kiota client generate or kiota plugin generate against a .kiota/workspace.json from an untrusted repository or pull request.
0.0.1 - 1.32.4
Fixed in 1.32.5@microsoft/kiota is vulnerable to Path Traversal in versions 0.0.1 - 1.32.4.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.