Skip to content
MediumVulnerability

GHSA-p5rm-jg5c-8c77: Microsoft Kiota: Path traversal in generated plugin manifest static_template.file reference (percent-encoding bypass)

Published
Record updated
View JSON
Affected
  • Microsoft.OpenApi.Kiota <= 1.33.0
Fixed in
1.34.0

Summary

Microsoft Kiota generates AI plugin manifests from OpenAPI descriptions, and the file reference in response_semantics.static_template.file is resolved by the AI host relative to the plugin package. A crafted reference that is percent-encoded, NUL-terminated, or uses Unicode homoglyphs bypassed the IsSafeFileReference check added in v1.32.5, letting paths resolve outside the package. An attacker who controls or tampers with the OpenAPI description could cause inclusion or disclosure of files beyond the package boundary.

Mitigation

Fixed in the first released Microsoft.OpenApi.Kiota version after 1.33.0, which includes the patches from pull requests 7910 and 7913. Workarounds: only generate from trusted OpenAPI descriptions, and review generated manifests so that response_semantics.static_template.file is a simple relative path within the adaptiveCards/ folder.