Orval-labs orval
orval before 8.29.0 Code Injection via unescaped OpenAPI media-type
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.8critical · scored by CNA · CWE-94
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
orval-labs orval
- >= 6.7.1, < 8.29.0
Fixed in 8.29.0
Mitigation
Upgrade orval to 8.29.0 or later.
References
- Vendor advisory github.com/orval-labs/orval/security/advisorie…
- Vendor advisory github.com/orval-labs/orval/security/advisorie…
- Patch github.com/orval-labs/orval/pull/4007
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.