CVE-2026-54285
JSON

5.3medium

opentelemetry-js: Unbounded memory allocation in W3C Baggage propagation

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.40% (higher than 26% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-8988-4f7v-96qf

Description

opentelemetry-js is the OpenTelemetry JavaScript Client. Prior to 2.8.0, W3CBaggagePropagator.extract() in @opentelemetry/core does not enforce size limits when parsing inbound baggage HTTP headers. The W3C Baggage specification recommends a maximum of 8,192 bytes and 180 entries; these limits were only enforced on the outbound (inject()) path, not on the inbound (extract()) path. Parsing oversized baggage causes memory allocation proportional to the header size without any cap. This vulnerability is fixed in 2.8.0.

Affected

Product or packageVersionsReported by
open-telemetry opentelemetry-js< 2.8.0CVE List
@opentelemetry/core (npm)before 2.8.0GitHub Advisory Database
opentelemetry opentelemetrybefore 2.8.0NVD

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Classification

CWE-770

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

opentelemetry-js is the OpenTelemetry JavaScript Client. Prior to 2.8.0, W3CBaggagePropagator.extract() in @opentelemetry/core does not enforce size limits when parsing inbound baggage HTTP headers. The W3C Baggage specification recommends a maximum of 8,192 bytes and 180 entries; these limits were only enforced on the outbound (inject()) path, not on the inbound (extract()) path. Parsing oversized baggage causes memory allocation proportional to the header size without any cap. This vulnerability is fixed in 2.8.0.

GitHub Advisory Database

Overview

W3CBaggagePropagator.extract() in @opentelemetry/core does not enforce size limits when parsing inbound baggage HTTP headers. The W3C Baggage specification recommends a maximum of 8,192 bytes and 180 entries; these limits were only enforced on the outbound (inject()) path, not on the inbound (extract()) path. Parsing oversized baggage causes memory allocation proportional to the header size without any cap.

Impact

The practical availability impact for most Node.js deployments is limited. Node.js enforces a default --max-http-header-size of 16,384 bytes on the total combined size of all HTTP headers, constraining what an external attacker can deliver before the propagator is reached. Additionally, the header is already in memory (parsed by the HTTP layer) by the time it reaches the propagator - the additional allocation is the overhead of splitting into entry objects, not an unbounded read.

The risk is higher when transport-layer limits are absent - e.g., non-HTTP transports (messaging systems, custom TextMapGetter implementations) or deployments that have raised --max-http-header-size.

Remediation

Update @opentelemetry/core to version 2.8.0 or later. The fix enforces limits consistent with the W3C Baggage specification at the propagator level:

  • Maximum total baggage size: 8,192 bytes
  • Maximum number of entries: 180
  • Maximum per-entry size: 4,096 bytes

Headers that exceed these limits are truncated at the point the limit is reached.

Workarounds

Ensure header size limits are configured at the server or gateway level. The default Node.js HTTP header limit (16 KB) mitigates external attack vectors independently of this fix. For non-HTTP transports receiving baggage from untrusted sources, validate input size before passing it to the propagator.

References

Credit

Reported by tonghuaroot.

NVD (es)

opentelemetry-js es el cliente JavaScript de OpenTelemetry. Antes de la versión 2.8.0, W3CBaggagePropagator.extract() en @opentelemetry/core no aplica límites de tamaño al analizar los encabezados HTTP de baggage entrantes. La especificación W3C Baggage recomienda un máximo de 8.192 bytes y 180 entradas; estos límites solo se aplicaban en la ruta de salida (inject()), no en la ruta de entrada (extract()). El análisis de baggage de tamaño excesivo causa una asignación de memoria proporcional al tamaño del encabezado sin ningún límite. Esta vulnerabilidad se corrige en la versión 2.8.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54285 changed 2026-06-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-8988-4f7v-96qf changed 2026-09-10CC-BY-4.0
NVDCVE-2026-54285 changed 2026-10-25Public domain