# GHSA-9G87-32V6-3C2R: Payload: Sort queries could expose protected field information

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2026-10-06
- Modified: 2026-10-06

## Tracked as

- [CVE-2026-105805](https://cve.now/CVE-2026-105805.md): Payload: Sort queries could expose protected field information

## Affected versions

- payload (npm): fixed in 3.88.0
- payload (npm): from 4.0.0-canary.0, fixed in 4.0.0-canary.27

## Description

### Impact
Under certain conditions, sorting readable records could reveal limited information about fields the requester was not permitted to read.

You are affected if untrusted users can query a collection, control its sorting, and sort by protected fields.

### Patches
Payload now applies field-level access checks to sort fields before executing queries.

Users should upgrade to `>= 3.88.0` or `>= 4.0.0-canary.27`.

### Workarounds
Upgrading is recommended. Until then, prevent untrusted users from controlling sort parameters or restrict their access to affected collections.

## References

- https://github.com/payloadcms/payload/security/advisories/GHSA-9g87-32v6-3c2r
- https://github.com/payloadcms/payload/commit/a742140ab4fca3160f7f83e9e7d996552ffc3b5a
- https://github.com/payloadcms/payload
- https://github.com/payloadcms/payload/releases/tag/v3.88.0

Page: https://cve.now/GHSA-9G87-32V6-3C2R

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