The primary vulnerability is a SQL injection flaw in the DbResource.DataStats function located in server/resource/resource_aggregate.go. The function took user-supplied column and group parameters from an aggregation request and passed them directly to goqu.L(). This function from the goqu library is used to create raw SQL literals, so passing unvalidated user input to it allowed for the injection of arbitrary SQL expressions. An authenticated user could exploit this to read data from any table in the database. The fix involved removing all goqu.L() calls on user input and replacing them with a robust parsing and validation mechanism. This new mechanism uses an allowlist for functions, validates column names against the database schema, and uses safe goqu constructors. Additionally, the same commit fixed two denial-of-service vulnerabilities. One was in DbResource.DataStats where uuid.MustParse could cause a panic with malformed UUIDs. The other was in ToOrderedExpressionArray which could panic if it received an empty string in its input.