Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. kiota
  4. ›
  5. GHSA-2hx3-vp6r-mg3f

GHSA-2hx3-vp6r-mg3f: Kiota: Code Generation Literal Injection

April 14, 2026

Kiota versions prior to 1.31.1 are affected by a code-generation literal injection vulnerability in multiple writer sinks (for example: serialization/deserialization keys, path/query parameter mappings, URL template metadata, enum/property metadata, and default value emission).

When malicious values from an OpenAPI description are emitted into generated source without context-appropriate escaping, an attacker can break out of string literals and inject additional code into generated clients.

References

  • github.com/advisories/GHSA-2hx3-vp6r-mg3f
  • github.com/microsoft/kiota
  • github.com/microsoft/kiota/security/advisories/GHSA-2hx3-vp6r-mg3f

Code Behaviors & Features

Detect and mitigate GHSA-2hx3-vp6r-mg3f with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.31.1

Fixed versions

  • 1.31.1

Solution

Upgrade to version 1.31.1 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

nuget/kiota/GHSA-2hx3-vp6r-mg3f.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:20:05 +0000.