CVE-2026-104129
pREST _groupby function-expression SQL injection (incomplete fix of CVE-2025-58450)
Also known as GHSA-v9v2-98xq-627c, GO-2026-7020
Mitigation
- Upgrade github.com/prest/prest/v2 to 2.4.0 or later.
Who should check
- Projects that depend on Go package github.com/prest/prest (<= 1.5.5)
- Projects that depend on Go package github.com/prest/prest/v2 (<= 2.3.0)
- Anyone running prest < 2.4.0
Vulnerability facts
- Affected
- github.com/prest/prest <= 1.5.5; github.com/prest/prest/v2 <= 2.3.0
- Fixed in
- 2.4.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 8.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- EPSS
- 1.50% chance of exploitation in 30 days (percentile 75, 2026-11-28)
- CWE
- CWE-89
- Modified
Description
pREST (PostgreSQL REST) is an API that delivers an application on top of a Postgres database. Prior to 2.4.0, the vulnerable parameter is _groupby, handled by GroupByClause in adapters/postgres/postgres.go. adapters/postgres/postgres.go uses the weaker isSafeSQLExpression check for this function-expression branch instead of the stricter single-field validator used for _select. That check validates only the outer function name against a 13-function allowlist and permits nested subqueries, trailing UNION syntax, and inner pg_ functions. controllers/crud.go concatenates the GROUP BY expression while parameterizing only WHERE values, allowing attacker-controlled SQL structure into the clause. Default configuration permits unauthenticated access; a restricted installation may require a low-privilege table reader. UNION-based extraction requires compatible column counts and types and was not verified end to end, but a delay-producing function can cause denial of service without that alignment. This issue is fixed in 2.4.0.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/prest/prest | <= 1.5.5 | — | ghsa |
| Go github.com/prest/prest/v2 | <= 2.3.0 | 2.4.0 | ghsa |
| prest | < 2.4.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-104129. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-104129.md Affected: github.com/prest/prest <= 1.5.5; github.com/prest/prest/v2 <= 2.3.0 Fixed in: 2.4.0 Steps: 1. Search this machine and project for github.com/prest/prest (Go), github.com/prest/prest/v2 (Go), prest: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Vendor advisories
Patches
FAQ
Is CVE-2026-104129 being exploited?
There is no confirmed exploitation: CVE-2026-104129 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.50% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2026-104129?
High: CVSS 8.1 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-104129?
github.com/prest/prest <= 1.5.5; github.com/prest/prest/v2 <= 2.3.0.
Is there a fix for CVE-2026-104129?
Yes. Fixed in 2.4.0. Upgrade github.com/prest/prest/v2 to 2.4.0 or later.
How do I check if I'm affected by CVE-2026-104129?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.