VDB
Sign up
MEDIUM6.5

GHSA-hhfx-5x8j-f5f6

Payload: Server-Side Request Forgery (SSRF) in External File URL Uploads

Quick fix

GHSA-hhfx-5x8j-f5f6 — payload: upgrade to the fixed version with the command below.

npm install payload@3.75.0

Details

### Impact

A Server-Side Request Forgery (SSRF) vulnerability exists in Payload's external file upload functionality. When processing external URLs for file uploads, insufficient validation of HTTP redirects could allow an authenticated attacker to access internal network resources.

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

- Payload version < v3.75.0 - At least one collection with `upload` enabled - A user has `create` access to that upload-enabled collection

An authenticated user with upload collection write permissions could potentially access internal services. Response content from internal services could be retrieved through the application.

### Patches

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

### Workarounds

If users cannot upgrade immediately, they can mitigate this vulnerability by disabling external file uploads via the `disableExternalFile` upload collection option, or by restricting `create` access on upload-enabled collections to **trusted users only**.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/payload
Introduced in: 0Fixed in: 3.75.0
Fixnpm install payload@3.75.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"]}'