Origin Validation Error Affecting payload package, versions >=3.0.0 <3.90.0>=4.0.0-canary.0 <4.0.0-canary.34


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-PAYLOAD-20570534
  • published8 Oct 2026
  • disclosed7 Oct 2026
  • creditUnknown

Introduced: 7 Oct 2026

NewCVE-2026-105861  (opens in a new tab)
CWE-346  (opens in a new tab)

How to fix?

Upgrade payload to version 3.90.0, 4.0.0-canary.34 or higher.

Overview

payload is a Node, React and MongoDB Headless CMS and Application Framework

Affected versions of this package are vulnerable to Origin Validation Error via getExternalFile in packages/payload/src/uploads/getExternalFile.ts, where the origin of an external file request URL is not validated before fetching. When a relative URL is supplied as the file source, the original code reconstructs the base URL using the attacker-controlled origin request header, allowing an attacker to redirect the server-side fetch to an arbitrary origin and potentially exfiltrate authentication cookies. Additionally, the externalFileHeaderFilter callback previously received a static copy of request headers without context about whether the target is same-origin, meaning auth cookies could be forwarded to external hosts.

CVSS Base Scores

version 4.0
version 3.1