Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-59860: CWE-94: Improper Control of Generation of Code ('Code Injection') in microsoft kiota

0
High
VulnerabilityCVE-2026-59860cvecve-2026-59860cwe-94
Published: 07/16/2026 (07/16/2026, 14:34:24 UTC)
Source: CVE Database V5
Vendor/Project: microsoft
Product: kiota

Description

Kiota is an OpenAPI based HTTP Client code generator. Prior to 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.32.3.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →ai
microsoft/kiota
pkg:github/microsoft/kiota
Affected versions
<1.32.3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/16/2026, 15:02:57 UTC

Technical Analysis

CVE-2026-59860 is a code injection vulnerability (CWE-94) in Microsoft Kiota, an OpenAPI-based HTTP client code generator. The issue arises in versions before 1.32.3 when text from OpenAPI descriptions is inserted into single-line C# XML documentation comments without sanitizing newline and Unicode line-terminator characters. This allows an attacker to break out of the comment context and inject additional code into the generated client code. The vulnerability is addressed by sanitizing these characters in version 1.32.3.

Potential Impact

An attacker who can influence the OpenAPI description fields (description, externalDocs label, and externalDocs link) can inject arbitrary code into the generated C# client source code. This can lead to execution of malicious code when the generated client is compiled and run. The CVSS 4.0 score is 8.7 (high severity), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, and high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

A fix is available in Microsoft Kiota version 1.32.3. Users should upgrade to version 1.32.3 or later to remediate this vulnerability. No other official remediation or temporary fixes are documented. Patch status is not explicitly stated in the vendor advisory but the description confirms the issue is fixed in 1.32.3.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-07T15:41:53.606Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a58ef3568715ace43306138

Added to database: 07/16/2026, 14:48:21 UTC

Last enriched: 07/16/2026, 15:02:57 UTC

Last updated: 07/16/2026, 21:54:59 UTC

Views: 10

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses