Medium, CVSS 5.3npmAmendedPublished
OpenTelemetry Core: Unbounded memory allocation in W3C Baggage propagation
CVE-2026-54285 · GHSA-8988-4f7v-96qf
- Affected
- npm @opentelemetry/core < 2.8.0
- Fixed in
- 2.8.0· Vendor fix available
- Issue
- 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…
Recommended action: Upgrade to 2.8.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.