# CVE-2026-22665: prompts.chat identity confusion via case-sensitive username handling

Source: https://junglewise.ai/threats/cve-2026-22665-prompts-chat-identity-confusion-via-case-sensitive-username  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-03. Updated: 2026-05-26  
License: CC BY 4.0 with a link back

CVE-2026-22665 · Severity: high · CVSS 8.1 · Published 2026-04-03

prompts.chat, a platform for sharing AI prompts, is vulnerable to an identity confusion flaw where attackers can impersonate other users. By exploiting a mismatch in how the system checks for unique usernames, an attacker can create an account that looks identical to a target user (e.g., "Admin" vs "admin"). This allows the attacker to hijack the victim's profile page, replace their content with malicious links or misinformation, and damage the reputation of legitimate contributors.

Technologies: [F Awesome ChatGPT Prompts](https://junglewise.ai/threats/technologies/awesome-chatgpt-prompts), [Fka Prompts.Chat](https://junglewise.ai/threats/technologies/prompts-chat). Vendors: [F](https://junglewise.ai/threats/vendors/f), [Fka](https://junglewise.ai/threats/vendors/fka).

## Quick answers

**Is CVE-2026-22665 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-22665 being exploited in the wild.

**How severe is CVE-2026-22665?** High severity, with a CVSS score of 8.1, published 3 April 2026.

**Which products and versions are affected?** fka prompts.chat prior to commit 1464475.

**Is there a fix for CVE-2026-22665?** A patch was published on 2026-03-24: Fix committed to repository Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-22665 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-22665?** Check whether you run F Awesome ChatGPT Prompts or Fka Prompts.Chat. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability stems from a case-sensitivity mismatch between the registration/profile update logic and the database collation. While registration uses case-insensitive checks, the profile update and OAuth registration paths use Prisma's 'findUnique' method, which defaults to case-sensitive matching in PostgreSQL. This allows an attacker to bypass uniqueness constraints by creating case-variants (e.g., 'Admin' when 'admin' exists). Because the application's display surfaces resolve usernames case-insensitively using 'findFirst' without deterministic ordering, the attacker's profile can non-deterministically replace the victim's profile on canonical URLs. This leads to profile hijacking, OpenGraph spoofing, and metadata poisoning. The issue was fixed in commit 1464475 by enforcing consistent case-insensitive uniqueness checks.

## Affected products

- fka prompts.chat prior to commit 1464475

## Timeline

- 2026-03-24: patched: Fix committed to repository
- 2026-04-03: disclosed: CVE published

## References

- [https://github.com/f/prompts.chat/commit/1464475df2698fb7ccd0cdbc382b0750466f891d](https://github.com/f/prompts.chat/commit/1464475df2698fb7ccd0cdbc382b0750466f891d)
- [https://github.com/f/prompts.chat/pull/1098](https://github.com/f/prompts.chat/pull/1098)
- [https://www.vulncheck.com/advisories/prompts-chat-identity-confusion-via-case-sensitive-username-handling](https://www.vulncheck.com/advisories/prompts-chat-identity-confusion-via-case-sensitive-username-handling)

## Related threats

- [prompts.chat SSRF and credential leak in Fal.ai polling](https://junglewise.ai/threats/cve-2026-22664-prompts-chat-ssrf-and-credential-leak-in-fal-ai-polling)
- [prompts.chat authorization bypass in API endpoints and metadata generation](https://junglewise.ai/threats/cve-2026-22663-prompts-chat-authorization-bypass-in-api-endpoints-and-metadata)
- [prompts.chat blind SSRF in Wiro media generator](https://junglewise.ai/threats/cve-2026-22662-prompts-chat-blind-ssrf-in-wiro-media-generator)
- [prompts.chat path traversal in skill file handling](https://junglewise.ai/threats/cve-2026-22661-prompts-chat-path-traversal-in-skill-file-handling)
