Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-72716: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in orval-labs orval

0
Critical
VulnerabilityCVE-2026-72716cvecve-2026-72716cwe-1336
Published: 08/19/2026 (08/19/2026, 17:33:01 UTC)
Source: CVE Database V5
Vendor/Project: orval-labs
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Affected versions
<8.21.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/19/2026, 17:52:37 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses