HighGHSA-685m-2w69-288qCVE-2026-44289

protobuf.js: Denial of service through unbounded protobuf recursion

Published 12 May 2026 · Updated 10 Sept 2026

Affected packages

Affected
<7.5.6
Fixed in
7.5.6
Update to the fixed version for your release line, for example:npm install protobufjs@7.5.6
Affected
>=8.0.0 <8.0.2
Fixed in
8.0.2
Update to the fixed version for your release line, for example:npm install protobufjs@8.0.2

Details

Summary

protobufjs could recurse without a depth limit while decoding nested protobuf data. This affected both skipping unknown group fields and generated decoding of nested message fields.

A crafted protobuf binary payload could cause the JavaScript call stack to be exhausted during decoding.

Impact

An attacker who can provide protobuf binary data decoded by an application may be able to crash the process or otherwise cause decoding to fail with a stack overflow.

This affects applications that decode untrusted protobuf binary input with affected versions.

Preconditions

  • The application must decode protobuf binary data influenced by an attacker.
  • The crafted input must contain deeply nested protobuf structures, such as nested group tags or nested message fields.
  • The affected decoder path must process the crafted input.

Workarounds

Avoid decoding untrusted protobuf binary data with affected versions. If immediate upgrade is not possible, reject excessively nested messages at an outer protocol boundary where feasible, or isolate protobuf decoding in a process that can be safely restarted.

Is GHSA-685m-2w69-288q in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected protobufjs, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.