CVE-2026-54285: opentelemetry-js: Unbounded memory allocation in W3C Baggage propagation

Published Jun 15, 2026
·
Updated

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

- W3C Baggage Specification - Limits - opentelemetry-java: GHSA-rcgg-9c38-7xpx - opentelemetry-go: GHSA-mh2q-q3fh-2475

Credit

Reported by tonghuaroot.

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
npm/@opentelemetry/core<2.8.0
2.8.0
OpenTelemetry Opentelemetry Node.js<2.8.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@opentelemetry/core to a version that resolves this vulnerability.

    Fixed in 2.8.0
  2. Upgrade

    Upgrade @opentelemetry/core to a version that resolves this vulnerability.

    Fixed in 2.8.0
  3. Compensating control

    Ensure header size limits are configured at the server or gateway level.

  4. Compensating control

    For non-HTTP transports receiving baggage from untrusted sources, validate input size before passing it to the propagator.

Event History

Jun 15, 2026
Advisory Published
via GitHub·08:38 PM
Data Sourced
via GitHub·08:38 PM
DescriptionSeverityWeaknessAffected Software
Jun 22, 2026
CVE Published
via MITRE·04:52 PM
Data Sourced
via MITRE·04:52 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-54285?

CVE-2026-54285 has a severity rating of medium with a score of 5.3.

2

What is the risk associated with CVE-2026-54285?

CVE-2026-54285 presents a risk level of 27.

3

How do I fix CVE-2026-54285?

To fix CVE-2026-54285, ensure that the latest version of @opentelemetry/core is installed, which implements size limits for inbound baggage HTTP headers.

4

What software is affected by CVE-2026-54285?

CVE-2026-54285 affects the npm package @opentelemetry/core.

5

When was CVE-2026-54285 published?

CVE-2026-54285 was published on June 15, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203