CVE-2026-22661: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in prompts.chat
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.
AI Analysis
Technical Summary
CVE-2026-22661 is a path traversal vulnerability (CWE-22) in prompts.chat prior to commit 0f8d4c3, specifically in the handling of skill file ZIP archives. The server does not properly validate filenames within uploaded ZIP files, allowing attackers to include path traversal sequences that cause extraction outside the designated directory. This can result in arbitrary file write on the client system, including overwriting shell initialization files, which may lead to remote code execution. The vulnerability has a CVSS 4.0 score of 8.6, indicating high severity. There is no vendor advisory or patch available at this time, and the product is not a cloud service.
Potential Impact
Successful exploitation allows an unauthenticated attacker to write arbitrary files to the client system by exploiting missing server-side filename validation in skill file archives. This can lead to overwriting critical files such as shell initialization scripts, enabling code execution with the privileges of the affected user. The vulnerability poses a high risk due to the potential for remote code execution and system compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted skill file ZIP archives with prompts.chat version 0. Implement manual validation or sandbox extraction processes to prevent path traversal during archive extraction.
CVE-2026-22661: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in prompts.chat
Description
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.
CVSS v4.0
Score 8.6high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-22661 is a path traversal vulnerability (CWE-22) in prompts.chat prior to commit 0f8d4c3, specifically in the handling of skill file ZIP archives. The server does not properly validate filenames within uploaded ZIP files, allowing attackers to include path traversal sequences that cause extraction outside the designated directory. This can result in arbitrary file write on the client system, including overwriting shell initialization files, which may lead to remote code execution. The vulnerability has a CVSS 4.0 score of 8.6, indicating high severity. There is no vendor advisory or patch available at this time, and the product is not a cloud service.
Potential Impact
Successful exploitation allows an unauthenticated attacker to write arbitrary files to the client system by exploiting missing server-side filename validation in skill file archives. This can lead to overwriting critical files such as shell initialization scripts, enabling code execution with the privileges of the affected user. The vulnerability poses a high risk due to the potential for remote code execution and system compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted skill file ZIP archives with prompts.chat version 0. Implement manual validation or sandbox extraction processes to prevent path traversal during archive extraction.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-01-08T19:04:26.364Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d026ec0a160ebd92592ffe
Added to database: 04/03/2026, 20:45:32 UTC
Last enriched: 07/15/2026, 11:01:45 UTC
Last updated: 07/31/2026, 19:22:57 UTC
Views: 84
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.