A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-8767

CVE-2026-8767: Vercel AI RCE Vulnerability

CVE-2026-8767 is a remote code execution vulnerability in Vercel AI up to version 3.0.97 caused by OS command injection in PR branch name handling. This article covers technical details, affected versions, and mitigations.

Published: May 21, 2026

CVE-2026-8767 Overview

CVE-2026-8767 is an OS command injection vulnerability affecting Vercel AI versions up to 3.0.97. The flaw resides in the run function of the .github/workflows/prettier-on-automerge.yml workflow file, specifically in the PR Branch Name Interpolation component. An attacker can manipulate a pull request branch name to inject shell commands that execute inside the GitHub Actions runner. The attack can be initiated remotely, but exploitation complexity is high and the conditions for successful execution are difficult to meet. The exploit has been publicly disclosed. The vendor was contacted but did not respond.

Critical Impact

Successful exploitation enables arbitrary OS command execution within the GitHub Actions runner context, potentially exposing repository secrets and CI/CD tokens.

Affected Products

  • Vercel AI versions up to and including 3.0.97
  • The .github/workflows/prettier-on-automerge.yml workflow file
  • The PR Branch Name Interpolation component within the workflow

Discovery Timeline

  • 2026-05-17 - CVE-2026-8767 published to NVD
  • 2026-05-19 - Last updated in NVD database

Technical Details for CVE-2026-8767

Vulnerability Analysis

The vulnerability is classified under [CWE-77] Improper Neutralization of Special Elements used in a Command. It originates in a GitHub Actions workflow named prettier-on-automerge.yml, which automates Prettier formatting on pull request branches.

The workflow interpolates the pull request branch name directly into a shell command using GitHub Actions expression syntax such as ${{ github.head_ref }}. Because branch names accept a broad character set, an attacker controlling the source branch name can embed shell metacharacters. When the workflow executes, those metacharacters are evaluated by the underlying shell rather than treated as literal text.

The attack surface is limited to repositories that trigger this workflow on untrusted pull requests. Exploitation requires the workflow to run against attacker-controlled refs, which contributes to the high attack complexity.

Root Cause

The root cause is unsafe string interpolation of untrusted Git reference data into a shell run step. GitHub Actions documentation explicitly warns against using ${{ ... }} expressions inside run blocks for untrusted inputs because the expression is substituted before the shell parses the command. The workflow did not pass the branch name through an environment variable or apply input validation prior to use.

Attack Vector

An attacker creates a fork of the repository and opens a pull request from a branch whose name contains shell payload syntax. When the targeted workflow triggers on the pull request event, the malicious branch name is concatenated into a shell command and executed on the GitHub-hosted runner. The attacker can then exfiltrate secrets available to the workflow or modify build artifacts.

No authenticated access to the target repository is required beyond standard GitHub fork and pull request capabilities. Technical details and a proof of concept are documented in the GitHub PoC Repository and the VulDB Vulnerability #364392 entry.

Detection Methods for CVE-2026-8767

Indicators of Compromise

  • Pull requests originating from branches whose names contain backticks, $(), semicolons, or pipe characters
  • GitHub Actions run logs showing unexpected shell commands executed during the prettier-on-automerge job
  • Outbound network connections from GitHub-hosted runners to attacker-controlled hosts during workflow execution
  • Use or rotation of repository secrets immediately following a workflow run triggered by an external fork

Detection Strategies

  • Audit workflow run logs for any prettier-on-automerge.yml executions and inspect the resolved branch name string
  • Scan repository workflow files for ${{ github.head_ref }} or ${{ github.event.pull_request.head.ref }} used inside run blocks
  • Monitor GitHub audit log events for pull requests created from forks with non-standard branch naming

Monitoring Recommendations

  • Forward GitHub Actions and audit logs to a centralized monitoring platform for anomaly review
  • Alert on workflow executions triggered by pull_request_target against repositories that store sensitive secrets
  • Track secret access events and correlate them with the originating workflow and pull request author

How to Mitigate CVE-2026-8767

Immediate Actions Required

  • Upgrade Vercel AI beyond version 3.0.97 once a fixed release is published, or remove the affected workflow until patched
  • Refactor .github/workflows/prettier-on-automerge.yml to pass the branch name through an environment variable rather than interpolating it into the shell command
  • Rotate any repository secrets that may have been exposed to runs triggered by external pull requests
  • Restrict workflow triggers from forks using GitHub repository settings that require approval for first-time contributors

Patch Information

At the time of NVD publication, no vendor patch had been published and the maintainer did not respond to disclosure outreach. Consult the VulDB Submission #811402 and the upstream vercel/ai repository for any subsequent fix commits.

Workarounds

  • Replace ${{ github.head_ref }} usage in run steps with env: mapping, then reference the variable as "$BRANCH_NAME" inside quoted shell context
  • Replace pull_request_target triggers with pull_request to remove access to write-scoped tokens and secrets for forked PRs
  • Enforce branch name validation in a preliminary job that rejects refs containing shell metacharacters before downstream steps run
bash
# Configuration example: safe branch name handling in GitHub Actions
jobs:
  prettier:
    runs-on: ubuntu-latest
    steps:
      - name: Validate and use branch name safely
        env:
          BRANCH_NAME: ${{ github.head_ref }}
        run: |
          if [[ ! "$BRANCH_NAME" =~ ^[a-zA-Z0-9._/-]+$ ]]; then
            echo "Invalid branch name"
            exit 1
          fi
          echo "Processing branch: $BRANCH_NAME"

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechVercel Ai

  • SeverityLOW

  • CVSS Score1.3

  • EPSS Probability0.23%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/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
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-77
  • Technical References
  • GitHub PoC Repository

  • VulDB Submission #811402

  • VulDB Vulnerability #364392

  • VulDB CTI for #364392
  • Related CVEs
  • CVE-2026-8769: Vercel AI DoS Vulnerability

  • CVE-2026-8768: Vercel AI SSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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