Umami through 3.5.0 contains an sql injection vulnerability that allows share token holders or authenticated users to inject SQL by supplying a crafted prefix field in Reports API object filters. Attackers can send crafted filters to /api/reports/ endpoints, which getFilterQuery concatenates unquoted into Postgres WHERE clauses, to read or modify data beyond the requested website.
https://www.vulncheck.com/advisories/umami-through-3.5.0-sql-injection-via-reports-api-filter-prefix
https://github.com/umami-software/umami/commit/98937e71bd776a44c58190051a58cdac811a5daf