# CVE-2026-96754: orval Hono generator code injection in OpenAPI path handling

Source: https://junglewise.ai/threats/cve-2026-96754-orval-versions-before-8-29-0-contain-a-code-injection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-23. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-96754 · Severity: critical · CVSS 9.8 · Published 2026-09-23

orval is a code generator that creates TypeScript API clients from OpenAPI specifications. The Hono generator in versions before 8.29.0 fails to properly escape special characters in API route paths, allowing attackers to inject arbitrary JavaScript code into generated modules. When a developer uses a maliciously crafted OpenAPI specification with an apostrophe in a path segment, the injected code executes immediately upon importing the generated module, potentially compromising applications that use the generated code.

Technologies: [Orval Labs Orval](https://junglewise.ai/threats/technologies/orval-labs-orval). Vendors: [Orval Labs](https://junglewise.ai/threats/vendors/orval-labs).

## Quick answers

**Is CVE-2026-96754 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-96754 being exploited in the wild.

**How severe is CVE-2026-96754?** Critical severity, with a CVSS score of 9.8, published 23 September 2026.

**Which products and versions are affected?** Orval Labs Orval before 8.29.0.

**Is there a fix for CVE-2026-96754?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-96754 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-96754?** Check whether you run Orval Labs Orval at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The @orval/hono generator constructs route path literals using single quotes without escaping OpenAPI path values, enabling JavaScript code injection via apostrophe characters in static path segments. This is a code generation vulnerability affecting the build/generation phase rather than runtime. An attacker can craft a malicious OpenAPI specification that, when processed by orval, produces TypeScript modules containing executable code that runs on import.

## Affected products

- orval-labs orval before 8.29.0

## Timeline

- 2026-09-23: disclosed: CVE-2026-96754 published

## References

- [https://github.com/orval-labs/orval](https://github.com/orval-labs/orval)
- [https://github.com/orval-labs/orval/blob/v8.28.1/packages/hono/src/index.ts](https://github.com/orval-labs/orval/blob/v8.28.1/packages/hono/src/index.ts)

## Related threats

- [orval code generation injection via unescaped operationId](https://junglewise.ai/threats/cve-2026-96759-orval-before-8-29-0-fails-to-escape-the-operationid-parameter)
- [orval code generation improper escaping in Content-Type headers](https://junglewise.ai/threats/cve-2026-96757-orval-before-8-29-0-fails-to-escape-openapi-media-type-keys-when)
- [orval code injection in factory generator date handling](https://junglewise.ai/threats/cve-2026-96756-orval-versions-before-8-30-0-contain-a-code-injection)
