# CVE-2026-54270: protobufjs: Memory amplification from preserved unknown fields in binary decode

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-22 · Modified: 2026-06-23
- Aliases: GHSA-94rc-8x27-4472, CGA-3rr7-ffc9-mfj6, CGA-44cq-xm2v-w3q8, CGA-4g6q-5cpw-966c, CGA-56g2-gjf5-f3gv, CGA-5w8v-46hr-v7f4, CGA-78wx-8v37-54c3, CGA-8v6g-9pxh-47qc, CGA-9f5p-g8g9-fhm3, CGA-9r7h-5586-xx89, CGA-g4mw-8mgc-m48w, CGA-gccj-xm5x-6hr2, CGA-h3v9-3qqv-6w24, CGA-j785-p8g7-x7cr, CGA-j8p5-3wxp-mm37, CGA-jjpw-q4jg-j4rh, CGA-jmf5-wgx5-5wg4, CGA-m9p3-c3m2-4v8v, CGA-phjw-7q2h-x78c, CGA-q568-vx44-7qhp, CGA-r8rj-6fg9-95h8, CGA-rrgm-7xv7-f3xf, CGA-wxmf-c5p2-948g
- Record: https://cvemate.com/vulnerability/CVE-2026-54270 · JSON: https://cvemate.com/vulnerability/CVE-2026-54270/json

## Description

```text
protobufjs compiles protobuf definitions into JavaScript (JS) functions. From 8.2.0 to 8.4.2, protobufjs preserved unknown wire elements in message.$unknowns and did not provide a decode-time option to discard unknown fields before retaining them. A crafted protobuf payload containing many unknown fields could therefore cause a decoded message to retain substantially more memory than the input size would suggest, even when unknown-field round-tripping is not needed. protobufjs 8.5.0 added the relevant decode-time options, allowing applications that decode untrusted protobuf data to disable unknown-field retention during decode. protobufjs 8.6.2 flips the default so unknown fields are discarded unless explicitly opted into.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.293%, percentile 23.507%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard librechat (Chainguard): \< 0.8.7-r3
- Npm protobufjs (Npm): ≥ 8.2.0, \< 8.5.0
- protobufjs\_project protobufjs: ≥ 8.2.0, \< 8.5.0
- protobufjs protobufjs: ≥ 8.2.0, \< 8.5.0

## References

- <https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-94rc-8x27-4472>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54270>
- <https://github.com/protobufjs/protobuf.js>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54270.json>

---

Data as of 2026-12-05T06:10:52.411Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
