VDB
Sign up
MEDIUM5.4

GHSA-jq29-r496-r955

payload-preferences has Cross-Collection IDOR in Access Control (Multi-Auth Environments)

Quick fix

GHSA-jq29-r496-r955 — payload: upgrade to the fixed version with the command below.

npm install payload@3.74.0

Details

### Impact

A cross-collection Insecure Direct Object Reference (IDOR) vulnerability exists in the `payload-preferences` internal collection. In multi-auth collection environments using Postgres or SQLite with default serial/auto-increment IDs, authenticated users from one auth collection can read and delete preferences belonging to users in different auth collections when their numeric IDs collide.

**Users are affected if ALL of these are true:**

- Multiple auth collections configured (e.g., `admins` + `customers`) - Postgres or SQLite database adapter with serial/auto-increment IDs - Users in different auth collections with the same numeric ID

**Not affected:**

- `@payloadcms/db-mongodb` adapter - Single auth collection environments - Postgres/SQLite with `idType: 'uuid'`

### Patches

This vulnerability has been patched in **v3.74.0**. Users should upgrade to v3.74.0 or later.

### Workarounds

There is no workaround other than upgrading. Users with multiple auth collections using Postgres or SQLite with serial IDs should upgrade immediately.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/payload
Introduced in: 0Fixed in: 3.74.0
Fixnpm install payload@3.74.0

References

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"]}'