Vulnerability GHSA-6gw6-rv2g-25mg

Low Risk
LOW RISK
CVSS Score: 3.1
Score Range: < 4.0
Low severity vulnerabilities (CVSS < 4.0). Hygiene issues that can accumulate but pose lower immediate risk.
2 hours ago
October 06, 2026 at 03:36 PM UTC
Kiota: Unsafe oauth_card_path references in Kiota-generated API plugin manifests
1.25.1 - 1.31.1 and 1.33.0 - 1.34.1
1.25.1 - 1.31.1 and 1.33.0 - 1.34.1

Summary

Kiota: Unsafe oauth_card_path references in Kiota-generated API plugin manifests

Details

Impact

When generating an API plugin manifest from an attacker-controlled or compromised OpenAPI description, Kiota copies x-ai-capabilities.response_semantics.oauth_card_path into the manifest without validating that it is a safe package-relative file reference. An attacker can supply parent-directory traversal, rooted paths, or absolute URIs instead of a card file within the plugin package.

The unsafe reference is propagated into the generated manifest. Its security effect depends on the downstream host's handling of the reference when the plugin is packaged and deployed. This is not local code execution or a file read performed by Kiota merely during generation. A consuming host that resolves the untrusted reference can cross the intended package boundary or use an unintended authentication card.

Affected versions

The affected NuGet packages are Microsoft.OpenApi.Kiota and Microsoft.OpenApi.Kiota.Builder, starting with version 1.25.1, which introduced this manifest field. The field remains unvalidated through version 1.34.1, including the separate 1.29.1 security-backport release. Version 1.35.0 fixes the issue.

Patches

Upgrade to Kiota 1.35.0 or later and regenerate affected plugin manifests. Kiota now applies the existing safe-file-reference validator to oauth_card_path, drops unsafe references, and emits a warning. Valid relative card paths remain supported.

Workarounds

Generate plugins only from trusted, integrity-protected OpenAPI descriptions. Before packaging or deployment, review generated manifests and remove any oauth_card_path that is not a safe relative reference confined to the plugin package. Do not rely on validation of sibling manifest fields to validate this field.

Related advisories

GHSA-4jwf-m4wg-8p66 and GHSA-p5rm-jg5c-8c77 cover static_template.file. Their fixes do not enforce validation at the separate oauth_card_path emission site.

Related Vulnerabilities

Other vulnerabilities affecting the same packages

High Risk
2 hours ago
Kiota: Code injection through doc-comment delimiter reformation in Kiota Java and PHP generators
0.5.1 - 0.6.0 and 0.7.1 - 1.0.1 and 1.2.0 - 1.5.1 and 1.6.1 - 1.7.0 and 1.9.0 - 1.21.0 and 1.23.0 GHSA-rm89-rhwj-9j92
0.5.1 - 0.6.0 and 0.7.1 - 1.0.1 and 1.2.0 - 1.5.1 and 1.6.1 - 1.7.0 and 1.9.0 - 1.21.0 and 1.23.0 GHSA-rm89-rhwj-9j92
High Risk
2 hours ago
Kiota: Code injection through doc-comment delimiter reformation in Kiota Java and PHP generators
0.5.1 - 0.6.0 and 0.7.1 - 1.0.1 and 1.2.0 - 1.5.1 and 1.6.1 - 1.7.0 and 1.9.0 - 1.21.0 and 1.23.0 GHSA-rm89-rhwj-9j92
0.5.1 - 0.6.0 and 0.7.1 - 1.0.1 and 1.2.0 - 1.5.1 and 1.6.1 - 1.7.0 and 1.9.0 - 1.21.0 and 1.23.0 GHSA-rm89-rhwj-9j92
Medium Risk
2 months ago
Microsoft Kiota: Path traversal in generated plugin manifest static_template.file reference (percent-encoding bypass)
0.2.0 - 0.6.0 and 0.7.1 and 0.8.3 - 1.0.1 and 1.2.0 - 1.5.1 and 1.6.1 - 1.7.0 and 1.9.0 - 1.21.0 and 1.23.0 and 1.25.1 - 1.31.1 and 1.33.0 GHSA-p5rm-jg5c-8c77
0.2.0 - 0.6.0 and 0.7.1 and 0.8.3 - 1.0.1 and 1.2.0 - 1.5.1 and 1.6.1 - 1.7.0 and 1.9.0 - 1.21.0 and 1.23.0 and 1.25.1 - 1.31.1 and 1.33.0 GHSA-p5rm-jg5c-8c77
High Risk
2 months ago
Microsoft Kiota: Arbitrary file write + code-injection via x-ms-kiota-info clientClassName and clientNamespaceName
0.2.0 - 0.6.0 and 0.7.1 - 1.0.1 and 1.2.0 - 1.5.1 and 1.6.1 - 1.7.0 and 1.9.0 - 1.21.0 and 1.23.0 GHSA-4vv7-jj25-4gh6
0.2.0 - 0.6.0 and 0.7.1 - 1.0.1 and 1.2.0 - 1.5.1 and 1.6.1 - 1.7.0 and 1.9.0 - 1.21.0 and 1.23.0 GHSA-4vv7-jj25-4gh6
High Risk
2 months ago
Microsoft Kiota: Arbitrary file write + code-injection via x-ms-kiota-info clientClassName and clientNamespaceName
0.2.0 - 0.6.0 and 0.7.1 - 1.0.1 and 1.2.0 - 1.5.1 and 1.6.1 - 1.7.0 and 1.9.0 - 1.21.0 and 1.23.0 GHSA-4vv7-jj25-4gh6
0.2.0 - 0.6.0 and 0.7.1 - 1.0.1 and 1.2.0 - 1.5.1 and 1.6.1 - 1.7.0 and 1.9.0 - 1.21.0 and 1.23.0 GHSA-4vv7-jj25-4gh6
View all vulnerabilities for these packages

Timeline

Published
2 hours ago
October 06, 2026 at 03:36 PM UTC
Fixed (1.35.0)
1 month ago
September 03, 2026 at 09:47 PM UTC
Last Modified
2 hours ago
October 06, 2026 at 03:46 PM UTC