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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-06-15T20:13:28.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-94rc-8x27-4472
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- protobufjs protobuf.js: >=8.2.0, < 8.5.0
- protobufjs (npm): from 8.2.0 before 8.5.0
- protobufjs_project protobufjs: from 8.2.0 before 8.5.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-94rc-8x27-4472> (mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54270> (advisory)
- <https://github.com/protobufjs/protobuf.js> (package)

## Sources

- CVE List: [CVE-2026-54270](https://www.cve.org/CVERecord?id=CVE-2026-54270), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-94rc-8x27-4472](https://github.com/advisories/GHSA-94rc-8x27-4472), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-54270](https://nvd.nist.gov/vuln/detail/CVE-2026-54270), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54270 · Whole record: https://cve.day/CVE-2026-54270.json · Rebuilt by cve.day 2026-11-25T22:59:25.392Z
