External Control of File Name or Path Affecting payload package, versions <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.38% (31st 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 Learn

Learn about External Control of File Name or Path vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PAYLOAD-20570545
  • published8 Oct 2026
  • disclosed7 Oct 2026
  • creditSONG JIHOON

Introduced: 7 Oct 2026

NewCVE-2026-105865  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-73  (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 External Control of File Name or Path via the deleteAssociatedFiles function in packages/payload/src/uploads/deleteAssociatedFiles.ts, where a filename stored in an upload document is not validated before being resolved into a file path for deletion. An authenticated attacker with upload permissions can supply a path-traversal sequence (e.g. ../../sensitive-file) as the filename, causing the server to delete arbitrary files outside the configured static upload directory.

CVSS Base Scores

version 4.0
version 3.1