PT-2026-60481 · Kiota · Kiota

CVE-2026-59862

·

Published

2026-07-16

·

Updated

2026-08-17

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Kiota versions prior to 1.32.0
Description Kiota is an OpenAPI based HTTP Client code generator. The Python generator fails to sanitize newlines in enum value descriptions provided via x-ms-enum.values[].description. This data flows through KiotaBuilder.SetEnumOptions into Documentation.DescriptionTemplate and PythonConventionService.RemoveInvalidDescriptionCharacters. Consequently, an attacker can inject malicious content into generated inline comments, allowing the execution of arbitrary Python code at the module scope when the generated modules are imported.
Recommendations Update to version 1.32.0.

Exploit

Fix

Code Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-59862
GHSA-7F3J-J7JJ-R3VR

Affected Products

Kiota