Kiota
Kiota: XML Doc-Comment Newline Breakout Code Injection
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 1.32.3, Kiota is affected by a code-generation injection vulnerability in the C# XML documentation-comment sink (the description, externalDocs label, and externalDocs link fields emitted as /// … comments). When text from an OpenAPI description is written into single-line XML doc comments without stripping newline and Unicode line-terminator characters, an attacker can break out of the /// comment line and inject additional code into generated C# clients. This issue is fixed in version 1.29.1 and 1.32.3.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.30.0, < 1.31.1
- < 1.29.1
Fixed in 1.31.1, 1.29.1
Mitigation
Upgrade kiota to 1.31.1 or 1.29.1 or later.
References
- Vendor advisory github.com/microsoft/kiota/security/advisories…
- Patch github.com/microsoft/kiota/pull/7831
- Patch github.com/microsoft/kiota/commit/ebb632db90aa…
1 more
- Release notes github.com/microsoft/kiota/releases/tag/v1.32.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.