SecurityContext

CVE-2026-59860: Kiota - Template Injection

  • Cve: CVE-2026-59860
  • Name: Kiota - Template Injection
  • Description: 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.
  • Impact: Attackers can inject arbitrary code into generated C# clients, potentially leading to code execution or client compromise.
  • Remediation: Upgrade to version 1.32.3 or later.
  • Vulnerability type: template_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.7
  • Cvss vector: 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Epss score: 0.01381
  • Epss percentile: 0.72709
  • Assignee: [email protected]
  • Published at: 2026-07-16T15:16:35Z
  • Age in days: 131
  • Modified at: 2026-10-24T21:10:00Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-59860
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/microsoft/kiota/commit/ebb632db90aa8e3c20949337d9faa2720d64ca44
https://github.com/microsoft/kiota/pull/7831
https://github.com/microsoft/kiota/releases/tag/v1.32.3
https://github.com/microsoft/kiota/security/advisories/GHSA-3hrf-2gc2-mx32

Products

ProductAffectedPlatform boundSourcesUrl
microsoft:kiota>= 1.30.0, < 1.31.1; < 1.29.1nocna_alias_text/v1/products/microsoft/kiota

Projects

RepositoryLink kindsIndexedUrl
microsoft/kiotacommit, fix, package, pull, releases, security_advisoryyes/v1/repositories/microsoft/kiota

Index

  • Repositories: 1
  • Repositories high signal: 1
  • Checked, none or zero: packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts