Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.6.5 and 8.6.6, protobufjs parsed option names by advancing through schema tokens until reaching an = token without checking for end of input, so a crafted .proto schema that opens an option declaration and ends prematurely can cause parse, Root.load, or Root.loadSync to loop indefinitely. This issue is fixed in versions 7.6.5 and 8.6.6.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-59877
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 01:29 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 8 Jul 2026, 15:28 UTC

protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.6.5 and 8.6.6, protobufjs parsed option names by advancing through schema tokens until reaching an = token without checking for end of input, so a crafted .proto schema that opens an option declaration and ends prematurely can cause parse, Root.load, or Root.loadSync to loop indefinitely. This issue is fixed in versions 7.6.5 and 8.6.6.

osv:CVE-2026-59877
Complete source record
{
  "id": "ddd7b40baa84e4945608f5ee22399e610017a4fd6c6a06f3aa88446c61d344ea",
  "url": "https://osv.dev/vulnerability/CVE-2026-59877",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "protobufjs: Denial of Service via infinite loop in .proto option parsing",
    "summary": "protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.6.5 and 8.6.6, protobufjs parsed option names by advancing through schema tokens until reaching an = token without checking for end of input, so a crafted .proto schema that opens an option declaration and ends prematurely can cause parse, Root.load, or Root.loadSync to loop indefinitely. This issue is fixed in versions 7.6.5 and 8.6.6.",
    "evidence": "osv:CVE-2026-59877",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-59877",
      "aliases": [
        "CVE-2026-59877",
        "GHSA-j3f2-48v5-ccww"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/protobufjs/protobuf.js",
              "type": "GIT",
              "events": [
                {
                  "introduced": "1dbcfe322899aca50fb82916db7802f647f23f0e"
                },
                {
                  "fixed": "89048ba0bbf3ed78f77199102f0614dafc2b4860"
                },
                {
                  "introduced": "933e8750dcd000c16a621a7344a4beaa034c4019"
                },
                {
                  "fixed": "55e4c8f8eadfc21c848f6a1eedd1b383a3720099"
                },
                {
                  "fixed": "10fba6d54815ceecca8a06b9a6db490c8f5d2217"
                },
                {
                  "fixed": "fa5c73add738ceb471e74da8cc2f3727c3d0a69f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "7.5.0"
                      },
                      {
                        "fixed": "7.6.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "8.0.0"
                      },
                      {
                        "fixed": "8.6.6"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "10fba6d54815ceecca8a06b9a6db490c8f5d2217"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "fa5c73add738ceb471e74da8cc2f3727c3d0a69f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "89048ba0bbf3ed78f77199102f0614dafc2b4860"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "protobufjs-v7.6.5"
                  },
                  {
                    "range": [
                      {
                        "fixed": "55e4c8f8eadfc21c848f6a1eedd1b383a3720099"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "protobufjs-v8.6.6"
                  }
                ]
              }
            }
          ],
          "versions": [
            "protobufjs-v7.6.4",
            "protobufjs-v8.6.5",
            "protobufjs-cli-v2.5.6",
            "protobufjs-v8.6.4",
            "protobufjs-cli-v2.5.5",
            "protobufjs-v7.6.3",
            "protobufjs-cli-v1.3.3",
            "protobufjs-v8.6.3",
            "protobufjs-cli-v2.5.4",
            "protobufjs-v8.6.2",
            "protobufjs-cli-v2.5.3",
            "protobufjs-v7.6.2",
            "protobufjs-cli-v1.3.2",
            "protobufjs-v8.6.1",
            "protobufjs-cli-v2.5.2",
            "protobufjs-v8.6.0",
            "protobufjs-cli-v2.5.1",
            "protobufjs-v8.5.0",
            "protobufjs-cli-v2.5.0",
            "utf8-v1.1.1",
            "protobufjs-v7.6.1",
            "protobufjs-cli-v1.3.1",
            "pool-v1.1.0",
            "path-v1.1.2",
            "float-v1.0.2",
            "eventemitter-v1.1.1",
            "codegen-v2.0.5",
            "base64-v1.1.2",
            "aspromise-v1.1.2",
            "protobufjs-v8.4.2",
            "protobufjs-cli-v2.4.2",
            "protobufjs-v8.4.1",
            "protobufjs-cli-v2.4.1",
            "protobufjs-v7.6.0",
            "protobufjs-cli-v1.3.0",
            "protobufjs-v8.4.0",
            "protobufjs-cli-v2.4.0",
            "protobufjs-v7.5.9",
            "inquire-v1.1.2",
            "fetch-v1.1.1",
            "protobufjs-v7.5.8",
            "protobufjs-v8.3.0",
            "protobufjs-cli-v2.3.0",
            "protobufjs-v8.2.1",
            "protobufjs-cli-v2.2.1",
            "protobufjs-v7.5.7",
            "protobufjs-v8.2.0",
            "protobufjs-cli-v2.2.0",
            "protobufjs-cli-v1.2.2",
            "protobufjs-cli-v2.0.3",
            "protobufjs-v7.5.6",
            "protobufjs-cli-v1.2.1",
            "protobufjs-v8.0.3",
            "protobufjs-v8.0.2",
            "protobufjs-cli-v2.0.2",
            "protobufjs-v7.5.5",
            "protobufjs-v8.0.1",
            "protobufjs-cli-v2.0.1",
            "protobufjs-v7.5.4",
            "protobufjs-v8.0.0",
            "protobufjs-cli-v2.0.0",
            "protobufjs-v7.5.3",
            "protobufjs-v7.5.2",
            "protobufjs-v7.5.1",
            "protobufjs-v7.5.0",
            "protobufjs-cli-v1.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59877.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.356934961Z",
      "provider": "osv",
      "references": [
        "https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v7.6.5",
        "https://github.com/protobufjs/protobuf.js/releases/tag/protobufjs-v8.6.6",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59877.json",
        "https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-j3f2-48v5-ccww",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-59877",
        "https://github.com/protobufjs/protobuf.js/commit/10fba6d54815ceecca8a06b9a6db490c8f5d2217",
        "https://github.com/protobufjs/protobuf.js/commit/fa5c73add738ceb471e74da8cc2f3727c3d0a69f",
        "https://github.com/protobufjs/protobuf.js/pull/2352"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-835"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59877.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-59877",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521352,
  "published_at": "2026-07-08T15:28:07.696+00:00"
}