Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-71867: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in orval-labs orval

0
Critical
VulnerabilityCVE-2026-71867cvecve-2026-71867cwe-89cwe-95
Published: 08/19/2026 (08/19/2026, 17:38:36 UTC)
Source: CVE Database V5
Vendor/Project: orval-labs
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →ai
orval-labs/orval
pkg:github/orval-labs/orval
Affected versions
<8.21.0

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

AILast updated: 08/19/2026, 17:53:26 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses