CVE-2026-72716: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in orval-labs orval
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.
AI Analysis
Technical Summary
Orval is a tool that generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Before version 8.21.0, the function formatDefaultValue in packages/zod/src/index.ts improperly handles ${...} expressions or backticks in query parameter defaults by embedding them directly into module-level template literals without safe encoding. This flaw allows an attacker to inject JavaScript code that executes upon importing the generated zod schema module, resulting in remote code execution in environments such as development, continuous integration, testing, or applications using the generated code. The vulnerability is tracked as CWE-1336 and has a CVSS 4.0 score of 9.3, indicating critical severity. The issue is resolved in orval version 8.21.0.
Potential Impact
Successful exploitation leads to arbitrary JavaScript code execution in the context of the developer, CI, test, or application environment that imports the generated zod schema module. This can compromise the integrity and security of these environments, potentially allowing attackers to execute malicious code without user interaction or privileges.
Mitigation Recommendations
This vulnerability is fixed in orval version 8.21.0. Users and organizations should upgrade to version 8.21.0 or later to remediate this issue. Patch status is not explicitly stated beyond this fix version, so verifying the upgrade with the vendor advisory is recommended. No other mitigation or temporary workaround is indicated.
CVE-2026-72716: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in orval-labs orval
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 v4.0
Score 9.3critical
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Orval is a tool that generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Before version 8.21.0, the function formatDefaultValue in packages/zod/src/index.ts improperly handles ${...} expressions or backticks in query parameter defaults by embedding them directly into module-level template literals without safe encoding. This flaw allows an attacker to inject JavaScript code that executes upon importing the generated zod schema module, resulting in remote code execution in environments such as development, continuous integration, testing, or applications using the generated code. The vulnerability is tracked as CWE-1336 and has a CVSS 4.0 score of 9.3, indicating critical severity. The issue is resolved in orval version 8.21.0.
Potential Impact
Successful exploitation leads to arbitrary JavaScript code execution in the context of the developer, CI, test, or application environment that imports the generated zod schema module. This can compromise the integrity and security of these environments, potentially allowing attackers to execute malicious code without user interaction or privileges.
Mitigation Recommendations
This vulnerability is fixed in orval version 8.21.0. Users and organizations should upgrade to version 8.21.0 or later to remediate this issue. Patch status is not explicitly stated beyond this fix version, so verifying the upgrade with the vendor advisory is recommended. No other mitigation or temporary workaround is indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-10T13:48:09.545Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a85eb31acd9273b49667252
Added to database: 08/19/2026, 17:43:13 UTC
Last enriched: 08/19/2026, 17:52:37 UTC
Last updated: 08/19/2026, 21:44:12 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.