Skip to main content
Vulnerability Database/CVE-2026-105861

CVE-2026-105861: Payload CMS Information Disclosure Flaw

CVE-2026-105861 is an information disclosure vulnerability in Payload CMS that can expose authenticated session data to unintended recipients through URL-based upload redirects. This article covers technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-105861 Overview

CVE-2026-105861 affects Payload, a free and open source headless content management system. The vulnerability exists in versions after 3.0.0 and before 3.90.0. Authenticated external URL-based upload retrieval can forward authentication data to a redirected destination that was never verified as trusted. An attacker who controls or influences the redirect target can capture a valid session associated with the Payload user. The issue is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor. Maintainers resolved the flaw in version 3.90.0 by validating the origin of external file requests.

Critical Impact

Authenticated session credentials can be forwarded to untrusted hosts during external URL upload retrieval, enabling unintended disclosure of valid user sessions.

Affected Products

  • Payload CMS versions after 3.0.0 and before 3.90.0
  • Deployments using external URL-based upload retrieval
  • Payload instances exposing authenticated upload endpoints to users

Discovery Timeline

  • 2026-10-06 - CVE-2026-105861 published to the National Vulnerability Database (NVD)
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-105861

Vulnerability Analysis

Payload supports uploading files by supplying an external URL. The server fetches the referenced resource on behalf of the authenticated user. Prior to version 3.90.0, the fetching logic in packages/payload/src/uploads/getExternalFile.ts followed HTTP redirects without re-evaluating whether the redirect target shared the original request origin. Authentication headers or cookies attached to the initial request could therefore be transmitted to a third-party host selected by an attacker. This is a classic cross-origin credential leak that falls under [CWE-200].

Root Cause

The root cause is missing origin validation during redirect handling in the external file fetcher. The code trusted the destination of a redirect without checking whether it matched the original request origin. There was no isSameOrigin concept applied to header forwarding, so authentication context propagated beyond the trust boundary.

Attack Vector

Exploitation requires an authenticated user with low privileges and user interaction. An attacker submits an external URL pointing to a host they control. That host responds with an HTTP redirect to another destination, or the attacker abuses an open redirect on an allow-listed host. The Payload backend follows the redirect while retaining session credentials, exposing them to the attacker-controlled endpoint.

typescript
// Patch excerpt - packages/payload/src/uploads/getExternalFile.ts
 import type { File, FileData, UploadConfig } from './types.js'
 
 import { APIError } from '../errors/index.js'
+import { getRequestOrigin } from '../utilities/getRequestOrigin.js'
 import { isURLAllowed } from '../utilities/isURLAllowed.js'
 import { safeFetch } from './safeFetch.js'

// Patch excerpt - packages/payload/src/uploads/types.ts
+export type ExternalFileHeaderFilterContext = {
+  isSameOrigin: boolean
+  url: string
+}

Source: Payload commit ba5cf6a. The fix introduces getRequestOrigin and an ExternalFileHeaderFilterContext with an isSameOrigin flag so header forwarding decisions respect the request origin.

Detection Methods for CVE-2026-105861

Indicators of Compromise

  • Outbound HTTP requests from the Payload backend to hosts not listed in the upload allow-list.
  • Server logs showing external upload fetches that terminate at a different host than originally submitted due to redirects.
  • Repeated upload submissions by a single authenticated account targeting varying external URLs within short time windows.

Detection Strategies

  • Review Payload application logs for getExternalFile invocations and correlate the submitted URL with the final fetched URL to identify redirect chains.
  • Inspect egress proxy or firewall logs for Payload backend requests carrying Authorization headers or session cookies to unexpected external domains.
  • Audit the UploadConfig for each collection and flag any configuration that permits broad external URL fetching.

Monitoring Recommendations

  • Enable structured logging on all external upload operations and forward records to a centralized SIEM for correlation.
  • Alert on redirect responses received by the Payload backend during upload fetches, especially cross-origin redirects.
  • Track authenticated upload volume per user and alert on anomalous spikes consistent with credential harvesting attempts.

How to Mitigate CVE-2026-105861

Immediate Actions Required

  • Upgrade Payload CMS to version 3.90.0 or later, which validates external file request origin.
  • Restrict the upload allow-list in UploadConfig to a minimal set of trusted hosts until upgrade is complete.
  • Rotate session secrets and invalidate active sessions if logs show external upload requests to untrusted destinations.

Patch Information

The fix is tracked in GitHub Security Advisory GHSA-pj5h-5q6c-3pfx and delivered in Payload Release v3.90.0. The underlying code change is commit ba5cf6a, which adds getRequestOrigin and an ExternalFileHeaderFilterContext type to gate header forwarding on isSameOrigin.

Workarounds

  • Disable external URL-based upload retrieval in affected collections if upgrading is not immediately possible.
  • Enforce a strict allow-list of trusted hosts for external fetches and reject redirects at the network boundary using an egress proxy.
  • Strip authentication headers and cookies from server-side fetches that leave the application origin.
bash
# Upgrade Payload to the patched version
npm install payload@3.90.0

# Verify installed version
npm ls payload

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.