CVE-2026-96759: orval before 8.29.0 Code Injection via operationId

Published Sep 23, 2026
·
Updated

orval before 8.29.0 fails to escape the operationId parameter when emitting it into generated TanStack Query mutator options metadata objects. Attackers can inject arbitrary JavaScript code through a crafted operationId in an OpenAPI specification that executes when generated hooks are called.

Affected Software

1 affected component
npm/orval<8.29.0

Event History

Sep 23, 2026
CVE Published
via MITRE·04:23 PM
Data Sourced
via MITRE·04:23 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Projects using orval versions before 8.29.0 are exposed when they generate TanStack Query hooks from an OpenAPI specification containing an attacker-controlled or otherwise untrusted operationId.

2

What must an attacker control for exploitation?

The attacker needs to provide or modify an OpenAPI specification so that it contains a crafted operationId. The injected JavaScript executes when the generated hooks are called.

3

Are applications affected merely by installing a vulnerable version?

The described execution path requires generated TanStack Query hooks and a crafted operationId in the OpenAPI input. The data does not indicate that installation alone triggers code execution.

4

What is the available remediation?

Upgrade orval to version 8.29.0 or later. Until upgrading, do not generate code from untrusted OpenAPI specifications and review operationId values in specifications used for generation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203