Intel

AIKIDO-2026-734217

pubnub is vulnerable to Path Traversal

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 21, 2026
July 21, 2026

59

CVE Score

Medium

Path Traversal

Are you affected? Scan for Free

TL;DR

The file sharing endpoints in pubnub build request paths by interpolating the user provided file id and name values without percent-encoding, while only the channel segment is encoded. Untrusted values containing slashes or dot-dot sequences alter the request path and can escape the files endpoint to reach other server API routes such as access-manager grant. A caller that forwards untrusted file identifiers can manipulate which endpoint the signed request targets. The fix percent-encodes the id and name segments so separators can no longer break out of the intended path.

How do I fix this?

Upgrade the pubnub library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application passes untrusted input as the file id or name to the file download, file URL, or delete file APIs.

Package

Versions

4.29.0 - 12.0.0

Fixed in 12.0.1

Background info

pubnub is vulnerable to Path Traversal in versions 4.29.0 - 12.0.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea