## pREST _groupby function-expression SQL injection (incomplete fix of CVE-2025-58450)

- 種別: advisory
- 重大度: high
- 関連技術: go, github, postgresql
- CVE: CVE-2026-104129, CVE-2025-58450
- 公開日時: 2026-11-20T14:41:42.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-v9v2-98xq-627c)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-v9v2-98xq-627c

影響: go:github.com/prest/prest <= 1.5.5, go:github.com/prest/prest/v2 <= 2.3.0 → 2.4.0
What the fix did and the gap ---------------------------- The v2.3.0 fix (commit e88dabb) routed the _select field through a strict new gate, sanitizeSelectField (postgres.go:947/1003/2097). The sibling _groupby path was left on the far weaker isSafeSQLExpression. adapters/postgres/postgres.go, GroupByClause (line 1946): a _groupby field that contains balanced parens takes the raw-SQL-expression branch (around lines 1999-2006), gated only by isSafeSQLExpression (line 2001, defined at 2043). Tha…