Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

microsoft/kiota
main @ 7c0a5da
29
Fixes
0
CVEs
CRITICAL
Peak severity
50.0%
Coverage
Highlights
Code Injection: 9 prior fixes. Scrutinize any change in this area.
src/Kiota.Builder/OpenApiExtensions/OpenApiAiCapabilitiesExtension.cs: most-fixed (3 issues). Treat as high-risk during review.
27 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Code Injection: Schema-derived literals and description strings are emitted into generated code across all language writers; a single escaping gap can lead to RCE in generated clients.
Auth Bypass: Multiple token providers and host validators lacked HTTPS scheme and host allowlist checks, risking token exfiltration to unauthorized hosts.
Path Traversal: Workspace consumer identifiers, output paths, and static_template.file references are used in filesystem paths; multiple bypasses via encoding and Unicode were fixed.