CVE Catalog

CVE-2026-96757

CriticalCVSS 9.8
Published: Translated: NVD NIST

Summary

orval before 8.29.0 fails to escape OpenAPI media-type keys when emitting them into single-quoted Content-Type string literals in generated code. Attackers can inject JavaScript through crafted media-type keys in OpenAPI specifications that executes when generated fetch operations or mock resolvers are invoked.

Risk Assessment

Injected JavaScript code can be executed during application runtime, potentially leading to unauthorized actions and security breaches.

Recommendation

Upgrade orval to version 8.29.0 or later and validate OpenAPI specifications for malicious media-type keys.

Other vulnerabilities in orval

See all
Original NVD description (English source)

orval before 8.29.0 fails to escape OpenAPI media-type keys when emitting them into single-quoted Content-Type string literals in generated code. Attackers can inject JavaScript through crafted media-type keys in OpenAPI specifications that executes when generated fetch operations or mock resolvers are invoked.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS