# GHSA-36HG-WWP2-FG8W: Ash.bulk\_create with return\_skipped\_upsert?: true in AshPostgres returns another tenant's record for a skipped upsert

- Database: GitHub
- Severity: CVSS 6.0 (Medium)
- Published: 2026-10-25
- Modified: 2026-10-25

## Tracked as

- [CVE-2026-115635](https://cve.now/CVE-2026-115635.md): AshPostgres returns another tenant's record for a skipped upsert when return\_skipped\_upsert? is set

## Affected versions

- ash\_postgres (Hex): from 2.6.22, fixed in 2.15.2

## Description

Incorrect Authorization vulnerability in ash-project ash_postgres allows a user to read another tenant's record through a skipped upsert.

When `Ash.bulk_create/4` or a single create runs as an upsert with `return_skipped_upsert?: true` and the upsert is skipped (for example because its `upsert_condition` does not hold), `AshPostgres.DataLayer` reads the existing row back by the upsert identity in `do_bulk_create/3` and `upsert/4`. That lookup did not apply the resource's attribute multitenancy, so on a resource using `strategy :attribute` it could match and return the row of another tenant with the same identity values, exposing its fields to the caller.

### Configurations

Reachable when a resource uses attribute multitenancy, an action performs upserts with `return_skipped_upsert?: true`, and a caller can supply identity values that another tenant also uses.

### Patches

Fixed in ash_postgres 2.15.2.

## References

- https://github.com/ash-project/ash/security/advisories/GHSA-36hg-wwp2-fg8w

Page: https://cve.now/GHSA-36HG-WWP2-FG8W

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
