Vulnerability Information
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
Orval: Import-time RCE via query-parameter default -> zod module-level template literal
Vulnerability Description
Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, a ${...} expression or backtick in a query parameter default is emitted into a module-level template literal emitted by zod schema generation without safe encoding. This permits attacker-controlled JavaScript to be evaluated when the generated zod schema module is imported, resulting in code execution in the developer, CI, test, or application environment. The affected code is packages/zod/src/index.ts function formatDefaultValue. This issue is fixed in version 8.21.0.
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Vulnerability Type
CWE-1336
Vulnerability Title
orval-labs orval 代码注入漏洞
Vulnerability Description
orval-labs orval是orval-labs组织的一款服务器设备与网络产品。 orval-labs orval 8.21.0之前版本存在代码注入漏洞,该漏洞源于zod模式生成时未对查询参数默认值中的${...}表达式或反引号进行安全编码,可能导致攻击者控制的JavaScript在导入生成的zod模式模块时被评估,造成代码执行。
CVSS Information
N/A
Vulnerability Type
N/A