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-25141

CVE-2026-25141: Orval OpenAPI RCE Vulnerability

CVE-2026-25141 is a remote code execution vulnerability in Orval that allows attackers to bypass sanitization using JSFuck technique. This article covers the technical details, affected versions 7.19.0-7.21.0 and 8.2.0, and mitigation.

Published: February 6, 2026

CVE-2026-25141 Overview

CVE-2026-25141 is a critical code injection vulnerability affecting Orval, a tool that generates type-safe JavaScript clients (TypeScript) from OpenAPI v3 or Swagger v2 specifications. This vulnerability represents an incomplete fix for the previous CVE-2026-23947, where the jsStringEscape function's sanitization logic can be bypassed using a technique known as JSFuck to achieve arbitrary JavaScript execution.

The vulnerability stems from insufficient character escaping in the string sanitization function. While the jsStringEscape function properly handles common dangerous characters like single quotes ('), double quotes ("), and backslashes, it fails to account for the limited character set []()!+ that can be used to construct arbitrary JavaScript expressions through JSFuck encoding.

Critical Impact

Remote attackers can bypass sanitization controls to execute arbitrary JavaScript code during client generation, potentially compromising developer environments and CI/CD pipelines without requiring alphanumeric characters or quotes.

Affected Products

  • Orval versions 7.19.0 through 7.20.x
  • Orval versions 8.0.0 through 8.1.x

Discovery Timeline

  • 2026-01-30 - CVE CVE-2026-25141 published to NVD
  • 2026-02-04 - Last updated in NVD database

Technical Details for CVE-2026-25141

Vulnerability Analysis

This vulnerability is classified under CWE-94 (Improper Control of Generation of Code - Code Injection). The core issue lies in the incomplete remediation of CVE-2026-23947, where developers implemented escape handling for traditional injection characters but overlooked the possibility of constructing valid JavaScript using only non-alphanumeric characters.

The jsStringEscape function in Orval's core string utilities was designed to sanitize user-controlled input from OpenAPI specifications before incorporating it into generated TypeScript client code. However, the sanitization approach focused on escaping quote characters and backslashes while leaving characters like brackets [], parentheses (), exclamation marks !, and plus signs + untouched.

JSFuck is an esoteric programming technique that exploits JavaScript's type coercion rules to write valid code using only six characters: [, ], (, ), !, and +. By leveraging JavaScript's automatic type conversion, attackers can encode any JavaScript code without using letters, numbers, or quote characters. This allows complete bypass of the current sanitization logic.

When a malicious OpenAPI specification containing JSFuck-encoded payloads is processed by vulnerable Orval versions, the encoded JavaScript executes during the client generation phase. This could occur in developer workstations or automated CI/CD pipelines that process untrusted API specifications.

Root Cause

The root cause is an allowlist-based approach to character escaping that failed to anticipate alternative code construction methods. The jsStringEscape function explicitly handles known dangerous characters but does not implement a strict allowlist of permitted characters. The function at /packages/core/src/utils/string.ts#L227 performs targeted escaping rather than comprehensive input validation, leaving the JSFuck character set ([]()!+) available for exploitation.

Attack Vector

The attack vector requires network access where an attacker can supply a malicious OpenAPI specification to a system running vulnerable Orval versions. The attack does not require authentication or user interaction, making it particularly dangerous in automated processing scenarios.

An attacker crafts an OpenAPI v3 or Swagger v2 specification containing JSFuck-encoded JavaScript payloads in fields that get processed by the jsStringEscape function. When Orval processes this specification to generate TypeScript clients, the encoded payload bypasses sanitization and executes arbitrary code. For example, a JSFuck encoding of alert(1) uses only the characters []()!+ and evaluates to the same result when interpreted by JavaScript.

The attack is particularly concerning for organizations that automatically generate API clients from external or third-party API specifications, as the malicious payload would execute during the build process with the permissions of the executing user or service account.

Detection Methods for CVE-2026-25141

Indicators of Compromise

  • Presence of unusual character sequences containing only []()!+ in OpenAPI specification files
  • Unexpected JavaScript execution or process spawning during Orval code generation
  • Modified or unexpected files created during API client generation processes
  • Anomalous network connections originating from build processes running Orval

Detection Strategies

  • Implement static analysis scanning of OpenAPI specifications for JSFuck patterns before processing
  • Monitor CI/CD pipeline logs for unusual activity during Orval execution phases
  • Deploy application-level logging to capture input specifications processed by Orval
  • Use file integrity monitoring on generated client code directories to detect unexpected modifications

Monitoring Recommendations

  • Configure security monitoring for build servers and developer workstations running Orval
  • Establish baseline behavior for code generation processes to identify anomalies
  • Implement alerting on process creation events during automated API client generation
  • Review and audit external API specifications before incorporating them into build pipelines

How to Mitigate CVE-2026-25141

Immediate Actions Required

  • Upgrade Orval to version 7.21.0 or 8.2.0 immediately to apply the complete fix
  • Audit all OpenAPI specifications currently in use for potentially malicious content
  • Review CI/CD pipeline configurations that process untrusted API specifications
  • Temporarily disable automated processing of external API specifications until patches are applied

Patch Information

The Orval development team has released patched versions that address this code injection bypass vulnerability. The fix includes comprehensive sanitization that accounts for the JSFuck character set and other non-alphanumeric code construction techniques.

Version BranchFixed VersionRelease Information
7.x7.21.0GitHub Release v7.21.0
8.x8.2.0GitHub Release v8.2.0

For additional technical details and security information, refer to the GitHub Security Advisory GHSA-gch2-phqh-fg9q and the related advisory GHSA-h526-wf6g-67jv.

Workarounds

  • Implement pre-processing validation of OpenAPI specifications to reject inputs containing JSFuck character patterns
  • Run Orval in isolated container environments with minimal permissions to limit exploitation impact
  • Establish a trusted specification review process before processing any external API definitions
  • Consider using network segmentation to restrict build environment access to sensitive resources
bash
# Example: Update Orval to patched version
npm update @orval/core@7.21.0
# or for version 8.x
npm update @orval/core@8.2.0

# Verify installed version
npm list @orval/core

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechOrval

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • 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/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
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Code Utility Function

  • GitHub Release v7.21.0

  • GitHub Release v8.2.0

  • GitHub Security Advisory GHSA-gch2-phqh-fg9q

  • GitHub Security Advisory GHSA-h526-wf6g-67jv
  • Related CVEs
  • CVE-2026-24132: Orval TypeScript Client 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