pubnub is vulnerable to Denial of Service (DoS)
59
Medium Risk
Pubnub::Cbor decodes CBOR-encoded PubNub access tokens without bounding recursion depth, per-container element counts, or total input size. When a malformed or attacker-crafted token is passed to Pubnub::Client#parse_token, the decoder can recurse until it raises SystemStackError, spin on truncated input, or attempt very large allocations, hanging or crashing the caller. An attacker who can supply token input to the parser can therefore trigger a denial of service. The fix caps recursion depth, per-container length, and total input size, adds bounded byte consumption, and raises Pubnub::Cbor::DecodeError on malformed input.
You are affected if you are using a version that falls within the vulnerable range and your application passes externally supplied or otherwise untrusted tokens to Pubnub::Client#parse_token.
pubnub is vulnerable to Denial of Service (DoS) in versions 4.7.0 - 6.1.0.
Upgrade the pubnub library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant