Skip to main content

protobufjs EUVDEUVD-2026-38305

| CVE-2026-54270 MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-06-15 https://github.com/protobufjs/protobuf.js GHSA-94rc-8x27-4472
5.3
CVSS 3.1 · Vendor: https://github.com/protobufjs/protobuf.js
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify network-accessible protobuf decode endpoint
  2. Delivery
    Craft binary payload with high-density unknown field numbers not in target schema
  3. Exploit
    Submit crafted payload (repeat concurrently)
  4. Install
    protobufjs retains unknown wire elements in message.$unknowns
  5. C2
    Heap memory grows disproportionate to wire-size input
  6. Execute
    Sustained concurrent submissions accumulate retained data
  7. Impact
    Service degrades or terminates via OOM

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires four simultaneous conditions: (1) the attacker must have a network channel to submit protobuf binary-encoded data to the target application - for example, a gRPC endpoint, an HTTP API accepting application/x-protobuf, or any other protobuf-over-network interface; (2) the attacker-selected wire field numbers must not be defined in the application's .proto schema, causing the decoder to classify them as unknown and store them in message.$unknowns - this is trivially achievable by using field numbers in the upper ranges of the valid protobuf field space; (3) the application must run protobufjs 8.2.0 through 8.4.2 without having set discardUnknown (unavailable on these versions) or upgraded to 8.5.0+; and (4) decoded messages must remain live in heap memory long enough for accumulated unknown-field data to affect aggregate memory usage - services that immediately discard decoded messages, operate under strict per-request memory budgets, enforce low request concurrency, or have short request timeouts are significantly less exposed. Exploitation is NOT possible against applications decoding only trusted, internally generated protobuf data, or against applications already on protobufjs 8.5.0+ with discardUnknown enabled, or 8.6.2+ with default settings.

Impact

The NVD-assigned CVSS 3.1 score of 5.3 (Medium) with vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L accurately reflects the network-accessible, zero-authentication attack vector paired with bounded availability impact. The A:L rating - rather than High - is reasonable because sustained concurrent requests are required to accumulate sufficient memory pressure for process termination; a single crafted payload is unlikely to be immediately fatal. No EPSS score was provided in the source data. The vulnerability is absent from CISA KEV and no public proof-of-concept exploit code is identified, both signals pointing toward lower operational urgency. Real-world risk is highly deployment-sensitive: services with strict transport-layer input-size limits, per-request memory budgets, request concurrency caps, or short message lifetimes are substantially protected; services that retain large numbers of concurrently decoded messages in memory (e.g., caches, queues, streaming decoders) without such controls face genuine degradation or OOM risk. The attack surface is broad - any public gRPC or protobuf-over-HTTP endpoint qualifies - but exploitation reliability depends on the amplification ratio achievable against a specific schema.

Exploit ScenarioDerived

An attacker identifies a public gRPC endpoint or REST API accepting application/x-protobuf bodies that is backed by a Node.js service using protobufjs 8.2.0-8.4.2. The attacker crafts binary protobuf messages containing hundreds or thousands of field entries with field numbers absent from the service's schema, maximizing the unknown-to-known field ratio. By submitting these messages concurrently at moderate request rates, the attacker causes the service's heap to grow disproportionately as retained message.$unknowns arrays accumulate, ultimately degrading response latency or triggering an out-of-memory crash. No public exploit code is confirmed at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 15, 2026

Memory amplification in protobufjs 8.2.0-8.4.2 enables remote unauthenticated attackers to exhaust heap memory in Node.js services by submitting crafted protobuf binary payloads densely packed with field numbers absent from the application's schema. The library's unknown-field retention feature - introduced in 8.2.0 - stores these wire elements in message.$unknowns with no decode-time cap or discard mechanism, allowing payloads to consume memory far exceeding their wire size. No public exploit code is identified at time of analysis, and this vulnerability is not listed in CISA KEV; however, the attack requires no privileges and is accessible over the network against any service that decodes untrusted protobuf binary input.

RemediationAI

The primary fix is upgrading to protobufjs 8.6.2 or newer, where unknown fields are discarded by default unless the application explicitly sets discardUnknown = false; this requires no code changes for applications that do not rely on unknown-field round-tripping. For applications upgrading only to 8.5.x, enable the discard option explicitly: call Reader.discardUnknown = true once at application startup to apply the behavior globally, or set reader.discardUnknown = true on individual Reader instances before decoding - note that per-reader configuration requires touching all decode call sites. Applications that cannot upgrade immediately should enforce strict input-size limits at the transport boundary (e.g., grpc.max_receive_message_length, Express limit in bodyParser) to constrain the maximum amplification per request; this does not eliminate the vulnerability but caps per-request memory cost. Additionally, enforcing request concurrency limits and per-request timeouts reduces the window for concurrent in-flight messages to accumulate. See https://github.com/protobufjs/protobuf.js/security/advisories/GHSA-94rc-8x27-4472 for full advisory details.

Affected VersionsENISA

protobuf.js 8.2.0, < 8.5.0

Affected Packages

npm protobufjs fix: 8.5.0
euvd protobuf_js_8_2_0 fix: 8.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

protobufjs is the dominant JavaScript/TypeScript implementation of Google's Protocol Buffers binary serialization format (npm package pkg:npm/protobufjs). Version 8.2.0 introduced unknown-field preservation: when a binary-encoded message contains wire fields whose field numbers are not declared in the application's .proto schema, the decoder stores the raw wire elements in the message.$unknowns property to support round-trip fidelity. CWE-770 (Allocation of Resources Without Limits or Throttling) precisely describes the root cause: the library allocated memory for these retained unknown fields without exposing any mechanism to bound that allocation or discard fields at decode time. An attacker exploiting this can craft a payload where the ratio of unknown-to-known fields is maximized, causing the in-memory representation to be orders of magnitude larger than the serialized input. Version 8.5.0 introduced reader.discardUnknown and Reader.discardUnknown to control this behavior; version 8.6.2 changed the default to discard unknown fields unless explicitly opted into.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/protobufjs/protobuf.js) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 5.3 MEDIUM

Network-reachable with no auth; A:L rather than H because process termination requires sustained concurrent requests, not a single payload.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 5.3 LOW

Primary rating from Vendor (https://github.com/protobufjs/protobuf.js).

CVSS VectorVendor: https://github.com/protobufjs/protobuf.js

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

DescriptionCVE.org

Summary

protobufjs 8.2.0 added support for preserving unknown fields encountered during binary decode. Affected versions 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.

Impact

An attacker who can provide protobuf binary data decoded by an application using affected protobufjs versions may be able to increase memory pressure by sending messages with many unknown fields. This can degrade availability or contribute to process termination in services that decode and retain attacker-controlled messages.

This issue affects applications that decode untrusted protobuf binary input and do not need unknown-field round-tripping. Applications that only decode trusted protobuf data, already enforce input-size/concurrency limits, or do not retain decoded messages beyond immediate processing are less directly affected.

Preconditions

  • The application must decode protobuf binary data influenced by an attacker.
  • The decoded schema must not define the attacker-selected field numbers, causing those fields to be treated as unknown.
  • The application must use a protobufjs version that preserves unknown fields but does not provide a decode-time discard option.
  • The decoded message, or enough decoded messages concurrently, must remain live long enough for retained unknown-field data to affect memory usage.

Workarounds

Upgrade to protobufjs 8.5.0 or newer and disable unknown-field preservation if not needed: Create a Reader, set reader.discardUnknown = true, and decode from that reader, or make this the default for subsequently created readers by setting Reader.discardUnknown = true. When upgrading to protobufjs 8.6.2 or newer, unknown fields are discarded by default unless opted into by setting discardUnknown = false.

Applications should also continue to enforce input-size, request concurrency, and request timeout limits at their transport or application boundary.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 25 npm packages depend on protobufjs (1 direct, 24 indirect)

Ecosystem-wide dependent count for version 8.2.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy