protobufjs: Denial of service through unbounded Any expansion during JSON conversion (protobufjs protobuf.js)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.46 % · percentile 40 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
Description
protobufjs compiles protobuf definitions into JavaScript (JS) functions. Prior to 7.6.1 and 8.4.1, protobufjs could recurse without a depth limit while converting decoded messages to plain objects or JSON. This affected generated toObject() conversion and the custom google.protobuf.Any JSON conversion path. A crafted protobuf binary payload containing deeply nested Any values could cause the JavaScript call stack to be exhausted during conversion to JSON. This vulnerability is fixed in 7.6.1 and 8.4.1.
Weaknesses (CWE)
- CWE-674 — Uncontrolled Recursion
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD · security-advisories@github.com (Secondary) |
Advisories
- GHSA-wcpc-wj8m-hjx6 — protobufjs: Denial of service through unbounded Any expansion during JSON conversion
European references
- ENISA EUVD · EUVD-2026-38306
- GCVE · GCVE-0-2026-48712
Affected configurations (NVD CPE)
cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:*< 7.6.1cpe:2.3:a:protobufjs_project:protobufjs:*:*:*:*:*:node.js:*:*≥ 8.0.0 < 8.4.1
Affected products
| Product | Versions |
|---|---|
| protobufjs · protobuf.js | affected < 7.6.1 ; affected >= 8.0.0, < 8.4.1 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |