---
id: CVE-2026-22661
title: >-
  prompts.chat prior to commit 0f8d4c3 contains a path traversal vulnerability
  in skill file handling that allows attackers to write arbitrary files to the
  client system by crafting malicious ZIP archives with unsanitized filenames
  contain…
summary: >-
  prompts.chat prior to commit 0f8d4c3 contains a path traversal vulnerability
  in skill file handling that allows attackers to write arbitrary files to the
  client system by crafting malicious ZIP archives with unsanitized filenames
  contain…
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'
cwe:
  - CWE-22
vendor: fka
product: prompts.chat
affected:
  - prompts.chat < 2026-03-25
patched:
  - prompts.chat 2026-03-25
published: '2026-04-03'
updated: '2026-07-24'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-22661'
references:
  - url: >-
      https://github.com/f/prompts.chat/commit/0f8d4c381abd7b2d7478c9fdee9522149c2d65e5
    label: disclosure@vulncheck.com
  - url: 'https://github.com/f/prompts.chat/pull/1101'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/prompts-chat-path-traversal-via-skill-file-handling
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00363
epssPercentile: 0.27371
ingestedAt: '2026-07-25T22:05:04.640Z'
---

## Overview

prompts.chat prior to commit 0f8d4c3 contains a path traversal vulnerability in skill file handling that allows attackers to write arbitrary files to the client system by crafting malicious ZIP archives with unsanitized filenames containing path traversal sequences. Attackers can exploit missing server-side filename validation to inject path traversal sequences ../ into skill file archives, which when extracted by vulnerable tools writing files outside the intended directory and overwriting shell initialization files to achieve code execution.

## Affected

- `prompts.chat < 2026-03-25`

## Remediation

Upgrade past the affected range:

- `prompts.chat 2026-03-25`
