VDB
Sign up
HIGH7.2

GHSA-pj5h-5q6c-3pfx

Payload external upload trust validation issue

Quick fix

GHSA-pj5h-5q6c-3pfx — payload: upgrade to the fixed version with the command below.

npm install payload@3.90.0

Details

## Impact

Under certain external upload configurations, Payload could send authentication data to a destination that was not verified as trusted. If the affected request contained a valid session, this could expose that session to an unintended recipient.

**You are affected if:**

- You have enabled external URL-based upload retrieval, where authenticated requests can trigger it.

## Patches

Payload now validates the destination before forwarding authentication data and reapplies that validation when a request changes destination.

Users should upgrade Payload packages to `>= 3.90.0` or `>= 4.0.0-canary.34`.

## Workarounds It is recommended to update all Payload packages to `>= 3.90.0` or `>= 4.0.0-canary.34`.

If you cannot, a valid workaround exists: - Disable external URL-based upload retrieval where practical. - If you cannot disable it, configure the upload header filter to remove authentication data from outbound file requests. - Restrict access to the affected upload functionality.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/payload
Introduced in: 3.0.0Fixed in: 3.90.0
Fixnpm install payload@3.90.0
npm/payload
Introduced in: 4.0.0-canary.0Fixed in: 4.0.0-canary.34
Fixnpm install payload@4.0.0-canary.34

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