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

CVE-2026-105863: Payload CMS Authentication Bypass Vulnerability

CVE-2026-105863 is an authentication bypass flaw in Payload CMS that allows attackers to inject unintended values into authentication tokens. This post explains its impact, affected versions, 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-105863 Overview

Payload is a free and open source headless content management system written in TypeScript. CVE-2026-105863 affects Payload versions after 3.0.0 and before 3.90.0, where a custom field option could map a field to a reserved authentication claim name. This flaw allowed unintended values to be placed in the authentication token issued at login, enabling authentication bypass through claim collision [CWE-290]. The vulnerability is fixed in version 3.90.0.

Critical Impact

Attackers can craft user-controlled field values that overwrite reserved JSON Web Token (JWT) claims, impersonating other users or elevating privileges after login.

Affected Products

  • Payload CMS versions after 3.0.0
  • Payload CMS versions before 3.90.0
  • Deployments using custom field names that collide with reserved JWT claims (id, collection, email, sid, exp, iat)

Discovery Timeline

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

Technical Details for CVE-2026-105863

Vulnerability Analysis

Payload issues JSON Web Tokens (JWTs) at login that encode user identity and session data. The token-signing routine in packages/payload/src/auth/getFieldsToSign.ts populated a result object with reserved claims such as id, collection, email, and sid, then traversed user-defined fields and merged their values into the same object. Because the field traversal ran after the reserved claims were set, any custom field configured with a name matching a reserved claim overwrote the trusted value.

An authenticated user with the ability to control such a field value could rewrite the id claim and have the backend treat the token as belonging to another account. The flaw sits in authentication token issuance, so downstream authorization checks that trust claim values inherit the compromise.

Root Cause

The root cause is improper reservation of JWT claim namespaces during token construction. The getFieldsToSign helper merged user data into the same record used for reserved claims without filtering collisions, violating the principle that authentication claims must originate solely from server-trusted sources [CWE-290].

Attack Vector

Exploitation requires a Payload collection where an administrator has defined a custom field whose name collides with a reserved JWT claim. An attacker who can set that field value, through the admin UI or an authenticated API call, forces the next issued token to carry attacker-controlled values in the reserved claim positions. The attack is network-reachable and requires no user interaction once the vulnerable field exists.

typescript
// Patch in packages/payload/src/auth/getFieldsToSign.ts
// Reserved JWT claims are now stripped after user field traversal
 }): Record<string, unknown> => {
   const { collectionConfig, email, sid, user } = args
 
-  const result: Record<string, unknown> = {
-    id: user?.id,
-    collection: collectionConfig.slug,
-    email,
-  }
-
-  if (sid) {
-    result.sid = sid
-  }
+  const fieldsToSign = Object.create(null) as Record<string, unknown>
 
   traverseFields({
     data: user!,
     fields: collectionConfig.fields,
-    result,
+    result: fieldsToSign,
   })
 
-  return result
+  delete fieldsToSign.collection
+  delete fieldsToSign.email
+  delete fieldsToSign.exp
+  delete fieldsToSign.iat
+  delete fieldsToSign.id
+  delete fieldsToSign.sid
+
+  return {

Source: GitHub Commit 56cd5cd

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-105863

Indicators of Compromise

  • Issued JWTs where the id or email claim does not match the authenticating user record in the Payload database.
  • Audit log entries showing authentication from a user whose token sid value conflicts with the stored session identifier.
  • Collection schemas containing custom field names matching reserved claims: id, collection, email, sid, exp, iat.

Detection Strategies

  • Inventory all Payload collection configurations and flag any field definitions whose name property collides with reserved JWT claim names.
  • Decode a sample of recently issued authentication tokens and compare claim values against the backing user records for drift.
  • Review Payload server logs for unexpected privilege elevations or cross-user access patterns following field schema changes.

Monitoring Recommendations

  • Alert on changes to collection field schemas in version control or the Payload admin API.
  • Monitor authentication endpoints for anomalous bursts of logins followed by access to resources outside the authenticated user's normal scope.
  • Capture and retain issued JWT headers and claims in centralized logging for retrospective analysis.

How to Mitigate CVE-2026-105863

Immediate Actions Required

  • Upgrade all Payload CMS deployments to version 3.90.0 or later without delay.
  • Audit every collection schema and rename any custom field whose name matches a reserved JWT claim.
  • Invalidate all active authentication sessions after upgrade to force reissuance of tokens with the patched signing logic.

Patch Information

The fix is delivered in Payload v3.90.0. The patch commit 56cd5cd rewrites getFieldsToSign to construct the signing payload from user fields first, then explicitly delete reserved claim keys before the server appends trusted values. Full details are in GitHub Security Advisory GHSA-66wr-7vmr-p5jq.

Workarounds

  • If immediate upgrade is not possible, remove or rename custom fields whose names match reserved JWT claims to eliminate the collision surface.
  • Restrict write access on vulnerable fields so only trusted administrators can set their values.
  • Rotate the JWT signing secret after remediation to invalidate any tokens issued with poisoned claims.
bash
# Upgrade Payload CMS to the patched release
npm install payload@3.90.0

# Or with pnpm
pnpm add payload@3.90.0

# Verify installed version
npm list 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.