# protobufjs denial of service in message parser

Source: https://junglewise.ai/threats/protobufjs-denial-of-service-in-message-parser-535484bb  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2020-08-19. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

Severity: info · Published 2020-08-19

protobufjs is a popular JavaScript library for working with Protocol Buffer messages, commonly used in web applications and Node.js services for data serialization. A denial of service vulnerability in the message parser allows an attacker to send a specially crafted protobuf message that consumes excessive system resources, potentially crashing the application or making it unresponsive. This could disrupt business operations for applications that rely on protobufjs for message handling.

Technologies: [protobufjs (npm)](https://junglewise.ai/threats/technologies/protobufjs). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 19 August 2020.

**Which products and versions are affected?** protobufjs (npm) SEMVER:introduced=6.0.0,fixed=6.8.6.

**Is there a fix for This vulnerability?** Yes. protobufjs (npm): upgrade to 6.8.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is This vulnerability attacked?** It is attacked over the network.

**Am I affected?** Check whether you run protobufjs (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- protobufjs (npm): upgrade to 6.8.6 or later

  ```sh
  npm install protobufjs@6.8.6
  ```


## Technical details

The vulnerability exists in the message parsing logic of protobufjs (specifically in src/parse.js), where insufficient validation or resource limits allow an attacker to craft a protobuf message that triggers computationally expensive operations. The attack vector is network-based if the application accepts protobuf messages from untrusted sources. No authentication is required to exploit this vulnerability—an attacker can simply send a malicious message to trigger the denial of service condition. The vulnerability affects all versions of the 5.x series up to 5.0.3 and the 6.x series from 6.0.0 through 6.8.5. Patches are available in protobufjs 5.0.3 and 6.8.6 or later.

## Affected products

- protobufjs protobufjs 5.x < 5.0.3, 6.0.0 - 6.8.5

## Timeline

- 2020-08-19: disclosed

## References

- [https://hackerone.com/reports/319576](https://hackerone.com/reports/319576)
- [https://github.com/dcodeIO/protobuf.js/blob/6.8.5/src/parse.js](https://github.com/dcodeIO/protobuf.js/blob/6.8.5/src/parse.js)
- [https://www.npmjs.com/advisories/605](https://www.npmjs.com/advisories/605)

## Related threats

- [protobufjs prototype mutation in Text Format string map parsing](https://junglewise.ai/threats/cve-2026-59876-protobufjs-prototype-pollution-in-text-format-extension)
- [protobufjs infinite loop in .proto option parsing](https://junglewise.ai/threats/cve-2026-59877-protobufjs-infinite-loop-in-proto-option-parsing)
- [protobufjs memory amplification via unknown field preservation](https://junglewise.ai/threats/cve-2026-54270-protobufjs-memory-amplification-via-unknown-field-preservation)
- [protobufjs property shadowing and uncontrolled recursion](https://junglewise.ai/threats/cve-2026-54269-protobufjs-property-shadowing-and-uncontrolled-recursion)
- [protobufjs uncontrolled recursion in JSON conversion](https://junglewise.ai/threats/cve-2026-48712-protobufjs-uncontrolled-recursion-in-json-conversion)
