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

CVE-2026-22661: prompts.chat Path Traversal Vulnerability

CVE-2026-22661 is a path traversal flaw in prompts.chat that allows attackers to write arbitrary files via malicious ZIP archives. This post covers the technical details, affected versions, impact, and mitigation.

Published: April 10, 2026

CVE-2026-22661 Overview

CVE-2026-22661 is a path traversal vulnerability in prompts.chat prior to commit 0f8d4c3 that exists in the skill file handling functionality. The vulnerability allows attackers to write arbitrary files to client systems by crafting malicious ZIP archives containing unsanitized filenames with path traversal sequences. Successful exploitation enables attackers to overwrite shell initialization files and achieve code execution on vulnerable systems.

Critical Impact

Attackers can exploit missing server-side filename validation to inject path traversal sequences (../) into skill file archives, enabling arbitrary file write and potential remote code execution through shell initialization file overwrites.

Affected Products

  • prompts.chat (versions prior to commit 0f8d4c3)

Discovery Timeline

  • 2026-04-03 - CVE-2026-22661 published to NVD
  • 2026-04-07 - Last updated in NVD database

Technical Details for CVE-2026-22661

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Path Traversal) and stems from insufficient input validation when processing skill file archives in prompts.chat. The application fails to properly sanitize filenames contained within ZIP archives before extracting them to the filesystem.

When a user imports a skill file, the application extracts the archive contents without validating that the embedded filenames are constrained to the intended extraction directory. An attacker can craft a malicious ZIP file containing entries with path traversal sequences (e.g., ../../../.bashrc) that, when extracted, write files outside the designated skill directory.

The attack is network-based and requires user interaction to trigger the extraction of a malicious skill archive. Once extracted, the attacker-controlled file can overwrite critical system files such as shell initialization scripts (.bashrc, .zshrc, .profile), enabling code execution the next time a shell session is initiated.

Root Cause

The root cause is missing server-side filename validation in the skill file extraction routine. The application directly uses filenames from the ZIP archive without stripping or rejecting path traversal sequences like ../. This allows archive entries to escape the intended extraction directory and write to arbitrary filesystem locations accessible by the application's process.

Attack Vector

The attack vector involves an attacker preparing a malicious ZIP archive containing files with crafted names that include path traversal sequences. When a victim downloads and imports this skill file through the prompts.chat interface, the extraction process writes the malicious payload to an attacker-controlled location on the filesystem.

A typical attack scenario involves the attacker creating a ZIP file with an entry named ../../../home/victim/.bashrc containing malicious shell commands. Upon extraction, this file overwrites the victim's shell initialization script. The next time the victim opens a terminal session, the injected commands execute with the victim's privileges.

The vulnerability requires user interaction (importing a skill file) but operates over the network, as malicious skill archives can be distributed through various channels including shared repositories, social engineering, or compromised skill hosting services.

Detection Methods for CVE-2026-22661

Indicators of Compromise

  • Unexpected modifications to shell initialization files (.bashrc, .zshrc, .profile) with timestamps correlating to skill file imports
  • Files appearing outside the expected skill directory structure following archive extraction operations
  • Presence of files containing path traversal sequences in application logs or temporary directories

Detection Strategies

  • Monitor file system operations during skill import workflows for writes outside designated directories
  • Implement integrity monitoring on critical system files such as shell initialization scripts
  • Review application logs for archive extraction events with suspicious filename patterns containing ../ sequences
  • Deploy file integrity monitoring (FIM) solutions to detect unauthorized modifications to user home directories

Monitoring Recommendations

  • Configure alerts for any file write operations targeting shell initialization files from the prompts.chat application context
  • Implement audit logging for all archive extraction events with full filename path recording
  • Monitor for process execution anomalies following shell initialization file modifications

How to Mitigate CVE-2026-22661

Immediate Actions Required

  • Update prompts.chat to commit 0f8d4c381abd7b2d7478c9fdee9522149c2d65e5 or later
  • Audit recently imported skill files for suspicious content
  • Review shell initialization files (.bashrc, .zshrc, .profile) for unauthorized modifications
  • Restrict skill file imports to trusted sources only until patched

Patch Information

The vulnerability has been addressed in commit 0f8d4c3 as documented in GitHub Pull Request #1101. Users should update to a version containing this commit. The fix implements proper filename sanitization to reject or neutralize path traversal sequences during archive extraction.

For additional details, see the GitHub Commit Overview and the VulnCheck Security Advisory.

Workarounds

  • Disable skill file import functionality until the patch can be applied
  • Implement external file integrity monitoring on critical system configuration files
  • Run prompts.chat in a sandboxed environment with restricted filesystem access
  • Manually inspect skill archive contents before importing, rejecting any entries with ../ in filenames

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechPrompts

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/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
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Overview

  • GitHub Pull Request #1101

  • VulnCheck Security Advisory
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free 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