pubnub is vulnerable to Path Traversal
59
CVE Score
Medium
Path Traversal
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.
Upgrade the pubnub library to the patch version.
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.
4.29.0 - 12.0.0
Fixed in 12.0.1pubnub is vulnerable to Path Traversal in versions 4.29.0 - 12.0.0.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.