Intel

AIKIDO-2026-162094

@orval/core is vulnerable to Code Injection

Code InjectionGHSA-rcpr-mq4m-jx9j Published 2 days ago

81

High Risk

This Affects:

JS@orval/core
6.11.0 - 8.28.1
Fixed in 8.29.0
Are you affected? Scan for Free

TL;DR

The @orval/core request generators embed OpenAPI request-body content-type keys into single-quoted TypeScript string literals without escaping single quotes. A content type containing a single quote closes the literal and injects arbitrary code into the generated request configuration. The code executes when the generated client is compiled by a transpiler that skips type checking and then run. The fix escapes content-type values at each emission site.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you generate request code from an untrusted or externally influenced OpenAPI document.

Background info

@orval/core is vulnerable to Code Injection in versions 6.11.0 - 8.28.1.

How to fix this

Upgrade the @orval/core library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform