CVE-2026-71867: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in orval-labs orval
Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, a single quote in a schema property name is emitted into single-quoted object keys in generated MSW mock factories without safe encoding. This permits attacker-controlled JavaScript to be evaluated when the generated mock factory is called by tests or an MSW handler, resulting in code execution in the developer, CI, test, or application environment. The affected code is packages/core/src/getters/keys.ts function getKey and MSW mock generation. This issue is fixed in version 8.21.0.
AI Analysis
Technical Summary
Orval generates type-safe JavaScript clients from OpenAPI and Swagger specifications. Before version 8.21.0, single quotes in schema property names were directly emitted into single-quoted object keys in generated MSW mock factories without proper encoding. This improper neutralization of special elements (CWE-89) permits injection of malicious JavaScript code that is executed when the mock factory is invoked. The vulnerability affects the function getKey in packages/core/src/getters/keys.ts and the MSW mock generation process. The vulnerability is resolved in version 8.21.0.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code in the context of the developer, continuous integration, testing, or application environment where the generated mock factory is used. This can lead to full code execution, potentially compromising the environment and any sensitive data or processes running therein.
Mitigation Recommendations
Upgrade orval to version 8.21.0 or later, where this vulnerability is fixed. No other mitigation is indicated by the vendor advisory. Patch status is confirmed fixed in 8.21.0.
CVE-2026-71867: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in orval-labs orval
Description
Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, a single quote in a schema property name is emitted into single-quoted object keys in generated MSW mock factories without safe encoding. This permits attacker-controlled JavaScript to be evaluated when the generated mock factory is called by tests or an MSW handler, resulting in code execution in the developer, CI, test, or application environment. The affected code is packages/core/src/getters/keys.ts function getKey and MSW mock generation. This issue is fixed in version 8.21.0.
CVSS v4.0
Score 9.3critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Orval generates type-safe JavaScript clients from OpenAPI and Swagger specifications. Before version 8.21.0, single quotes in schema property names were directly emitted into single-quoted object keys in generated MSW mock factories without proper encoding. This improper neutralization of special elements (CWE-89) permits injection of malicious JavaScript code that is executed when the mock factory is invoked. The vulnerability affects the function getKey in packages/core/src/getters/keys.ts and the MSW mock generation process. The vulnerability is resolved in version 8.21.0.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code in the context of the developer, continuous integration, testing, or application environment where the generated mock factory is used. This can lead to full code execution, potentially compromising the environment and any sensitive data or processes running therein.
Mitigation Recommendations
Upgrade orval to version 8.21.0 or later, where this vulnerability is fixed. No other mitigation is indicated by the vendor advisory. Patch status is confirmed fixed in 8.21.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-07T18:26:53.524Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a85eb30acd9273b4966722c
Added to database: 08/19/2026, 17:43:12 UTC
Last enriched: 08/19/2026, 17:53:26 UTC
Last updated: 08/19/2026, 22:38:17 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.