GHSA-9g87-32v6-3c2r
Payload: Sort queries could expose protected field information
Quick fix
GHSA-9g87-32v6-3c2r — payload: upgrade to the fixed version with the command below.
npm install payload@3.88.0Details
### 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
4.0.0-canary.0Fixed in: 4.0.0-canary.27npm install payload@4.0.0-canary.27References
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:npm/payload"]}'