Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-105801— openapi-python-client: Malicious OpenAPI Documents can cause Arbitrary Code Generation

Quick assessment

Affected
openapi-generators openapi-python-client
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

openapi-python-client 是一款根据 OpenAPI 文档生成 Python 客户端的代码生成工具。在版本 0.29.1 之前,该生成器在生成的 Python 代码中渲染字符串、文档字符串(docstring)及 f-string 上下文时,未能安全地消除恶意的 OpenAPI 文档内容。这可能导致生成的 Python 客户端中包含由攻击者控制的恶意代码,这些代码会在用户导入该客户端时执行,从而危及导入环境的完整性,并可能影响其机密性和可用性。该问题已在版本 0.29.1 中得到修复。

CVSS 8.4 · High

Possible ATT&CK Techniques 1 AI

T1195.002 · Compromise Software Supply Chain
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-105801

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
openapi-python-client: Malicious OpenAPI Documents can cause Arbitrary Code Generation
Source: CVE Program / CVE List V5
Vulnerability Description
openapi-python-client generates Python clients from OpenAPI documents. Prior to 0.29.1, the generator does not safely neutralize malicious OpenAPI document content before rendering string, docstring, and f-string contexts in generated Python. The generated Python client can contain attacker-controlled Python that executes when a user imports the client, affecting the importing environment's integrity and potentially its confidentiality and availability. This issue is fixed in version 0.29.1.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
openapi-generators openapi-python-client < 0.29.1 -

II. Public POCs for CVE-2026-105801

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-105801

请登录查看更多情报信息。

Other References for CVE-2026-105801 (4)

IV. Related Vulnerabilities

V. Comments for CVE-2026-105801

No comments yet


Leave a comment