Microsoft.OpenApi.Kiota.Builder is vulnerable to Server-Side Request Forgery (SSRF)
71
CVE Score
High
Server-Side Request Forgery (SSRF)
Kiota resolves OpenAPI $ref values by fetching remote http(s) URLs and reading local files, including absolute and out-of-tree paths, and inlines the referenced schema into the generated client. Running the generator on an attacker-controlled OpenAPI description whose $ref points at an internal URL or an arbitrary local file causes server-side requests from the build host and disclosure or inclusion of untrusted remote and local content. No code execution results because output sinks stay escaped. The fix makes external reference resolution default-deny and requires explicit opt-in through the --allowed-external-origins parameter.
Upgrade the Microsoft.OpenApi.Kiota.Builder and/or the Microsoft.OpenApi.Kiota library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you run the generator on untrusted OpenAPI descriptions that contain external references.
0.0.1 - 1.32.4
Fixed in 1.32.5Microsoft.OpenApi.Kiota.Builder is vulnerable to Server-Side Request Forgery (SSRF) in versions 0.0.1 - 1.32.4.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.