Vulnerability GHSA-rm89-rhwj-9j92

High Risk
HIGH RISK
CVSS Score: 8.8
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
2 hours ago
October 06, 2026 at 03:36 PM UTC
Kiota: Code injection through doc-comment delimiter reformation in Kiota Java and PHP generators
0.5.1 - 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 - 1.34.1
0.5.1 - 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 - 1.34.1

Summary

Kiota: Code injection through doc-comment delimiter reformation in Kiota Java and PHP generators

Details

Impact

An attacker who controls or tampers with an OpenAPI description can cause Kiota to emit attacker-controlled Java or PHP source outside a generated documentation comment. The affected sanitizers remove comment terminators rather than neutralizing them, allowing a terminator to reform from overlapping characters or from subsequent normalization. The Java sanitizer also removes non-ASCII characters after removing terminators, which can create a new terminator.

Exploitation requires a developer or build pipeline to generate a client from the malicious description and subsequently compile and load the Java output, or load the PHP output. Code executes in the consuming application's or build environment's security context, not merely because Kiota reads the description.

Affected versions

The affected NuGet packages are Microsoft.OpenApi.Kiota and Microsoft.OpenApi.Kiota.Builder. The Java normalization-order defect was introduced in version 0.5.0 and remains present through version 1.34.1, including the separate 1.29.1 security-backport release. The PHP delimiter-reformation variant is also present in version 1.34.1 and 1.29.1. Version 1.35.0 fixes both variants.

The package version range below reflects the Java defect; it does not assert that PHP generation existed in every version in that range.

Patches

Upgrade to Kiota 1.35.0 or later and regenerate affected clients. The fix neutralizes block-comment delimiters instead of deleting them, and performs Java delimiter neutralization after non-ASCII normalization.

Workarounds

Until upgrading, generate clients only from trusted, integrity-protected OpenAPI descriptions. Review generated Java and PHP source before compiling, loading, or deploying it. Restrict the privileges and secrets available to generation and build environments.

Related advisories

This is distinct from PHP double-quoted string interpolation (GHSA-jqwh-526h-c92j) and C# XML documentation newline breakout (GHSA-3hrf-2gc2-mx32). Those fixes do not address Java/PHP block-comment delimiter reformation.

Related Vulnerabilities

Other vulnerabilities affecting the same packages

Low Risk
2 hours ago
Kiota: Unsafe oauth_card_path references in Kiota-generated API plugin manifests
==1.25.1, ==1.26.0, ==1.26.1, ==1.27.0, ==1.28.0, ==1.29.0, ==1.29.1, ==1.30.0, ==1.31.0, ==1.31.1, >=1.32.0 <1.32.6, ==1.33.0, ==1.34.0, ==1.34.1 GHSA-6gw6-rv2g-25mg
==1.25.1, ==1.26.0, ==1.26.1, ==1.27.0, ==1.28.0, ==1.29.0, ==1.29.1, ==1.30.0, ==1.31.0, ==1.31.1, >=1.32.0 <1.32.6, ==1.33.0, ==1.34.0, ==1.34.1 GHSA-6gw6-rv2g-25mg
Low Risk
2 hours ago
Kiota: Unsafe oauth_card_path references in Kiota-generated API plugin manifests
GHSA-6gw6-rv2g-25mg
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