Vulnerability library
Security checkJuly 20, 2026

protobufjs: Denial of Service via infinite loop in .proto option parsing

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmprotobufjs

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

protobufjs parsed option names by advancing through schema tokens until it reached an = token, without checking for end of input. A crafted .proto schema that opens an option declaration but ends prematurely could cause the option parser to loop without ever terminating.

This affects the reflection parsing path (parse, Root.load, Root.loadSync).

Recommendation

Update the protobufjs package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 8.0.0, <= 8.6.5 >= 7.5.0, <= 7.6.4**
  • Patched version(s): **8.6.6 7.6.5**

References

Could your website be exposed too?

SmartScanner can check your website for protobufjs: Denial of Service via infinite loop in .proto option parsing and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 20, 2026