[GHSA-p5rm-jg5c-8c77] Microsoft Kiota: Path traversal in generated plugin manifest static_template.file reference (percent-encoding bypass) - #8894
Open
BarakSrour wants to merge 1 commit into
Conversation
github-actions
Bot
changed the base branch from
main
to
BarakSrour/advisory-improvement-8894
July 30, 2026 15:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
Comments
The advisory currently lists one affected product,
Microsoft.OpenApi.Kiota. The vulnerablevalidator ships in a second published package as well.
IsSafeFileReferenceis a member ofKiota.Builder.OpenApiExtensions.ExtensionResponseSemanticsStaticTemplate,which lives in
Kiota.Builder.dll. That assembly is published in two NuGet packages:Microsoft.OpenApi.Kiota- the .NET tool, which bundles it attools/net10.0/any/Kiota.Builder.dllMicrosoft.OpenApi.Kiota.Builder- the library, which ships it atlib/net8.0|net9.0|net10.0/Kiota.Builder.dllBoth the type and the method are
public, so a consumer of the library package reaches thevulnerable validator directly, and
Kiota.Builder.Plugins.PluginsGenerationService- the class theadvisory names as the enforcement point - is
publicin that package too. A consumer who uses thelibrary to generate plugin manifests programmatically, rather than through the CLI, is affected on
the same code path.
Two things suggest this is an oversight rather than a scoping decision:
src/Kiota.Builder/OpenApiExtensions/OpenApiAiCapabilitiesExtension.cs(IsSafeFileReference)and enforcement in
src/Kiota.Builder/Plugins/PluginsGenerationService.cs."GHSA-4jwf-m4wg-8p66/ CVE-2026-59864 - the fix that introducedIsSafeFileReference, whichthis advisory reports as bypassable — declares
Microsoft.OpenApi.KiotaandMicrosoft.OpenApi.Kiota.Builder. So the two advisories about one field currently disagree aboutwhich packages carry it.
Practical consequence: a dependency scanner reading this advisory clears
Microsoft.OpenApi.Kiota.Builder1.33.0, which is affected.Verification
Calling the published library package's own public validator, from a project that references it by
package name. Pure string predicate - no filesystem access, no network, no real path; the payload is
a marker filename that cannot exist.
Microsoft.OpenApi.Kiota.Builder1.33.0%2e%2e/%2e%2e/KIOTA-BUILDER-MARKER.jsondeemed_safe=Truedeemed_safe=False..%2f..%2fKIOTA-BUILDER-MARKER.jsondeemed_safe=Truedeemed_safe=False../../KIOTA-BUILDER-MARKER.json(control)deemed_safe=Falsedeemed_safe=Falsecards/ok.json(control)deemed_safe=Truedeemed_safe=TrueThe two controls matter: the raw-traversal row confirms v1.32.5's original mitigation is present and
working in the library package (so this is specifically the percent-encoding bypass the advisory
describes, not the earlier CVE), and the benign row confirms the validator is not simply rejecting
everything. Assembly identity was read at runtime -
Kiota.Builder 1.33.0.0and1.34.0.0.