Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-59862— Kiota: Code Generation Literal Injection in the Python Generator

Quick assessment

Affected
microsoft kiota
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Microsoft kiota是美国Microsoft公司的API平台生成工具。 Microsoft Kiota 1.32.0之前版本存在代码注入漏洞,该漏洞源于生成器未对换行符进行清理,导致攻击者控制的枚举值描述通过生成器流入文档模板和描述移除处理过程,使得在导入生成的模块时,内联注释可以分裂并执行攻击者控制的Python代码。

CVSS 7.5 · High EPSS 1.02% · P60

Affected Version Matrix 2

VendorProduct Version RangeStatus
microsoft kiota >= 1.30.0, < 1.31.1 affected
< 1.29.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-59862

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Kiota: Code Generation Literal Injection in the Python Generator
Source: CVE Program / CVE List V5
Vulnerability Description
Kiota is an OpenAPI based HTTP Client code generator. Prior to 1.29.1 and 1.32.0, Kiota's Python generator let attacker-controlled enum value descriptions from x-ms-enum.values[].description flow through KiotaBuilder.SetEnumOptions into Documentation.DescriptionTemplate and PythonConventionService.RemoveInvalidDescriptionCharacters without newline sanitization, allowing generated inline comments to split and execute attacker-controlled Python code at module scope when generated modules were imported. This issue is fixed in version 1.29.1 and 1.32.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Microsoft Kiota 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Microsoft kiota是美国Microsoft公司的API平台生成工具。 Microsoft Kiota 1.32.0之前版本存在代码注入漏洞,该漏洞源于生成器未对换行符进行清理,导致攻击者控制的枚举值描述通过生成器流入文档模板和描述移除处理过程,使得在导入生成的模块时,内联注释可以分裂并执行攻击者控制的Python代码。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
microsoft kiota >= 1.30.0, < 1.31.1 -

II. Public POCs for CVE-2026-59862

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 6280 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-59862

登录查看更多情报信息。

Vendor Advisories for CVE-2026-59862 (1)

Vendor Pages for CVE-2026-59862 (1)

Same Patch Batch · microsoft · 2026-07-16 · 20 CVEs total

CVE-2026-59865 9.3 CRITICAL Kiota: Command injection via x-ms-kiota-info dependencyInstallCommand surfaced by `kiota i
CVE-2026-59866 9.3 CRITICAL Kiota: Arbitrary file write + code-injection via x-ms-kiota-info clientClassName and clien
CVE-2026-59864 9.3 CRITICAL Kiota: Path/URL injection into generated Copilot plugin manifest via x-ai-* extensions
CVE-2026-59860 8.7 HIGH Kiota: XML Doc-Comment Newline Breakout Code Injection
CVE-2026-59859 8.7 HIGH Kiota: Code Generation Literal Injection in the PHP Generator
CVE-2026-57206 8.6 HIGH SimpleChat plugin validation endpoints missing authentication and authorization
CVE-2026-59117 7.5 HIGH Windows Terminal Remote Code Execution Vulnerability
CVE-2026-59861 7.5 HIGH Kiota: Code Generation Literal Injection in Kiota Ruby Generator
CVE-2026-53598 7.5 HIGH Prompty: Arbitrary File Read via ${file:path} Reference Expansion
CVE-2026-59867 7.1 HIGH Kiota: Generation-time SSRF + remote/local file inclusion via unrestricted $ref
CVE-2026-58598 7.0 HIGH Windows Backup Service Elevation of Privilege Vulnerability
CVE-2026-59863 7.0 HIGH Kiota: Workspace-config poisoning: out-of-repo file write + generation-time SSRF
CVE-2026-55440 6.5 MEDIUM Microsoft UFO: COMMAND_RESULTS handler creates unowned sessions, allowing authenticated se
CVE-2026-58643 6.1 MEDIUM Windows Admin Center Spoofing Vulnerability
CVE-2026-62826 4.6 MEDIUM Microsoft SharePoint Server Spoofing Vulnerability
CVE-2026-57205 4.3 MEDIUM SimpleChat: Authenticated users can access other users' profile metadata through user IDOR
CVE-2026-54568 4.3 MEDIUM Microsoft UFO: Missing Authorization in DEVICE_INFO_REQUEST Allows a DEVICE Client to Read
CVE-2026-54733 moodle-local_o365: Authentication bypass via unverified JWT signature in Teams SSO endpoin
CVE-2026-53597 Prompty: Arbitrary code execution via JavaScript frontmatter in TypeScript loader

IV. Related Vulnerabilities

V. Comments for CVE-2026-59862

No comments yet


Leave a comment