Partial String Comparison Affecting @payloadcms/next package, versions <3.90.0>=4.0.0-canary.0 <4.0.0-canary.34


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.48% (40th 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-PAYLOADCMSNEXT-20571239
  • published8 Oct 2026
  • disclosed7 Oct 2026
  • creditZerotistic

Introduced: 7 Oct 2026

NewCVE-2026-105858  (opens in a new tab)
CWE-187  (opens in a new tab)

How to fix?

Upgrade @payloadcms/next to version 3.90.0, 4.0.0-canary.34 or higher.

Overview

Affected versions of this package are vulnerable to Partial String Comparison via the isPublicAdminRoute utility in packages/next/src/utilities/isPublicAdminRoute.ts, which incorrectly marks any route containing the substring /verify/ as a public admin route, regardless of whether it corresponds to a valid collection with authentication enabled. An attacker can craft a request path that includes /verify/ to bypass admin authentication checks and gain unauthorized access to protected admin routes.

CVSS Base Scores

version 4.0
version 3.1