GHSA-238x-w2j9-gwwr
Payload vulnerable to API key disclosure through ordinary document reads
Quick fix
GHSA-238x-w2j9-gwwr — payload: upgrade to the fixed version with the command below.
npm install payload@3.90.0Details
### Impact
Users with read access to other user documents could access their active API keys. An exposed key grants the target account’s permissions until rotated or disabled.
You are affected if:
- An authentication collection enables `useAPIKey`. - Users have read access to other user documents containing active API keys.
### Patches
Users should upgrade payload packages to `>= 3.90.0` or `>= 4.0.0-canary.34`.
### Workarounds
Disable `useAPIKey` or restrict users to reading only their own authentication document. Rotate any API key that may have been exposed.
Are you affected?
Enter the version of the package you're using.
Affected packages
4.0.0-canary.0Fixed in: 4.0.0-canary.34npm install payload@4.0.0-canary.34References
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"]}'