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

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.50% (percentile 75, 2026-11-28)
- **CWE:** CWE-89
- **Aliases:** GHSA-v9v2-98xq-627c, GO-2026-7020
- **Published:** 2026-11-19T18:49:03.472Z
- **Modified:** 2026-11-23T20:30:17.320Z

## 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

## 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

- Go `github.com/prest/prest`: affected \<= 1.5.5; fixed no fix listed yet (ghsa)
- Go `github.com/prest/prest/v2`: affected \<= 2.3.0; fixed 2.4.0 (ghsa)
- prest: \< 2.4.0 (cvelist)

## Technologies

Go modules

## Mitigation

- Upgrade github.com/prest/prest/v2 to 2.4.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/prest/prest/security/advisories/GHSA-v9v2-98xq-627c>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-104129>
- patch: <https://github.com/prest/prest/pull/1014>
- patch: <https://github.com/prest/prest/commit/084348fa82701b098492fc520557ff290b7691e2>
- patch: <https://github.com/prest/prest/commit/73e4b2aea81e2dbd33942efcb1a313fe3b151a41>
- other: <https://github.com/prest/prest/releases/tag/v2.4.0>
- other: <https://github.com/advisories/GHSA-v9v2-98xq-627c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-104129>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-v9v2-98xq-627c> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-7020> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-104129> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-104129>
