OpenReplay SQL Injection Vulnerability in Cards Search Endpoint

Vulnerability

A SQL injection vulnerability has been identified in OpenReplay versions prior to 1.20.0. The issue resides in the POST /{projectId}/cards/search endpoint, where the sort.field parameter is not properly validated. This lack of validation allows attacker-controlled input to be directly interpolated into the SQL query's ORDER BY clause, creating a risk of malicious SQL injection.

Impact

Exploitation of this vulnerability allows for SQL injection, where an attacker can manipulate SQL queries to execute arbitrary SQL code, potentially leading to unauthorized data access or modification.

Reproduction

To reproduce this vulnerability, send a POST request to the /{projectId}/cards/search endpoint with a crafted sort.field parameter. The parameter can be any string, as it is not validated before being inserted into the SQL query. The injection occurs because the application uses an f-string to interpolate the sort.field value directly into the SQL query, bypassing proper sanitization.

Remediation

Users can upgrade to OpenReplay version 1.20.0 or later, where this vulnerability has been patched.

Added: Mar 5, 2026, 9:18 PM
Updated: Mar 5, 2026, 9:18 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
5.6
remediation
0.0
relevance
3.5
threat
1.6
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.