Intel

AIKIDO-2026-147639

@orval/core is vulnerable to Code Injection

Code InjectionGHSA-79f3-f442-cq2j Published 2 days ago

86

High Risk

This Affects:

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

TL;DR

@orval/core fails to sanitize numeric const values when generating TypeScript models, so a schema that declares a numeric type but supplies a string const escapes the numeric context. The unescaped value is spliced into a generated type and value declaration, injecting arbitrary code. The code executes when the generated models are imported as runtime modules. The fix renders mismatched const values as safe literal types.

Who does this affect?

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

Background info

@orval/core is vulnerable to Code Injection in versions 8.23.0 - 8.29.0.

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