The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-24132

CVE-2026-24132: Orval TypeScript Client RCE Vulnerability

CVE-2026-24132 is a remote code execution flaw in Orval that allows malicious OpenAPI specs to inject arbitrary code into generated TypeScript mocks. This post covers technical details, affected versions, impact, and mitigation.

Published: January 30, 2026

CVE-2026-24132 Overview

CVE-2026-24132 is a code injection vulnerability affecting Orval, a popular tool that generates type-safe JavaScript/TypeScript clients from OpenAPI v3 or Swagger v2 specifications. The vulnerability allows attackers to inject arbitrary TypeScript/JavaScript code into generated mock files through maliciously crafted OpenAPI specifications that abuse the const keyword on schema properties.

When Orval processes untrusted OpenAPI specifications, const values are interpolated into the mock scalar generator (getMockScalar in packages/mock/src/faker/getters/scalar.ts) without proper escaping or type-safe serialization. This results in attacker-controlled code being emitted into both interface definitions and faker/MSW (Mock Service Worker) handlers, creating a supply chain attack vector.

Critical Impact

Arbitrary code execution in development environments through malicious OpenAPI specifications that inject TypeScript/JavaScript into generated mock files, potentially compromising developer workstations and CI/CD pipelines.

Affected Products

  • Orval versions 7.19.0 and below
  • Orval versions 8.0.0-rc.0 through 8.0.2
  • Applications using Orval-generated mock files from untrusted OpenAPI specifications

Discovery Timeline

  • 2026-01-23 - CVE CVE-2026-24132 published to NVD
  • 2026-01-26 - Last updated in NVD database

Technical Details for CVE-2026-24132

Vulnerability Analysis

This vulnerability is classified as CWE-77 (Command Injection) and represents a significant supply chain security risk. The attack requires network access and user interaction (processing an untrusted OpenAPI specification), but requires no privileges to execute.

The vulnerability is similar in impact to a previously reported issue involving enum and x-enumDescriptions (GHSA-h526-wf6g-67jv), but affects a different code path specifically within the faker-based mock generator rather than @orval/core. This means organizations that patched the previous vulnerability may still be susceptible to this attack vector.

The impact extends beyond simple code execution - compromised mock files could exfiltrate sensitive development data, modify build outputs, or establish persistent access within development infrastructure.

Root Cause

The root cause lies in the getMockScalar function within packages/mock/src/faker/getters/scalar.ts. When processing OpenAPI schema properties that contain const values, the function directly interpolates these values into generated TypeScript/JavaScript code without proper escaping or sanitization.

This improper input validation allows specially crafted const values to break out of the expected context and inject arbitrary code that will be executed when the generated mock files are used during development or testing.

Attack Vector

The attack vector is network-based, requiring an attacker to supply a malicious OpenAPI specification to a developer or CI/CD system using a vulnerable version of Orval. The attack scenario involves:

  1. An attacker creates a malicious OpenAPI specification with crafted const values containing JavaScript/TypeScript payloads
  2. A developer or automated system processes this specification using Orval to generate mock files
  3. The malicious code is embedded into the generated interface definitions and faker/MSW handlers
  4. When the generated files are imported or executed during development/testing, the injected code runs with the privileges of the Node.js process

The attack requires some user interaction (processing the malicious specification) but the payload delivery mechanism is passive, making it suitable for supply chain attacks through compromised or malicious API documentation repositories.

Detection Methods for CVE-2026-24132

Indicators of Compromise

  • Unexpected JavaScript/TypeScript code patterns in generated mock files, particularly within const value assignments
  • Unusual string patterns in .ts or .js files generated by Orval that contain characters like backticks, semicolons, or function calls outside expected contexts
  • Network connections or file system operations initiated by mock/test processes that should be purely local

Detection Strategies

  • Audit OpenAPI specifications from external sources before processing with Orval
  • Implement code review processes for all generated mock files before committing to version control
  • Use static analysis tools to scan generated TypeScript/JavaScript files for suspicious patterns or injection indicators
  • Monitor for unexpected process spawning or network activity during development and testing phases

Monitoring Recommendations

  • Enable verbose logging when running Orval against new or updated OpenAPI specifications
  • Implement file integrity monitoring on generated mock directories to detect unexpected modifications
  • Review CI/CD pipeline logs for anomalous behavior during code generation steps
  • Consider sandboxing Orval execution when processing untrusted specifications

How to Mitigate CVE-2026-24132

Immediate Actions Required

  • Upgrade Orval to version 7.20.0 or 8.0.3 immediately to remediate this vulnerability
  • Audit any mock files previously generated from untrusted or external OpenAPI specifications
  • Review all OpenAPI specifications from third-party sources before processing
  • Regenerate mock files using the patched version of Orval

Patch Information

The Orval maintainers have released patched versions that properly escape and sanitize const values during mock generation:

  • Version 7.20.0 for the 7.x branch - GitHub Release v7.20.0
  • Version 8.0.3 for the 8.x branch - GitHub Release v8.0.3

The fix was implemented through multiple pull requests: PR #2828, PR #2829, and PR #2830.

For technical details about the vulnerability and fix, see the GitHub Security Advisory GHSA-f456-rf33-4626.

Workarounds

  • Avoid processing OpenAPI specifications from untrusted or unknown sources until patching is complete
  • Manually review all generated mock files for suspicious code patterns before use
  • Disable mock generation features when processing external specifications if mock functionality is not required
  • Implement network isolation for development environments that must process untrusted specifications
bash
# Upgrade Orval to patched version
npm update orval@7.20.0
# or for version 8.x
npm update orval@8.0.3

# Regenerate mock files with patched version
npx orval --config ./orval.config.ts

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechOrval

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-77
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Pull Request #2828

  • GitHub Pull Request #2829

  • GitHub Pull Request #2830

  • GitHub Release v7.20.0

  • GitHub Release v8.0.3

  • GitHub Security Advisory GHSA-f456-rf33-4626
  • Related CVEs
  • CVE-2026-25141: Orval OpenAPI RCE Vulnerability

  • CVE-2026-23947: Orval OpenAPI Client RCE Vulnerability

  • CVE-2026-22785: Orval OpenAPI Client Generator RCE Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English