{"id":"CVE-2026-54285","aliases":["CVE-2026-54285","GHSA-8988-4f7v-96qf"],"related":[],"kind":"vulnerability","state":"published","title":"opentelemetry-js: Unbounded memory allocation in W3C Baggage propagation","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Overview\n\n`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.\n\n## Impact\n\nThe 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.\n\nThe 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`.\n\n## Remediation\n\nUpdate `@opentelemetry/core` to version 2.8.0 or later. The fix enforces limits consistent with the W3C Baggage specification at the propagator level:\n\n- Maximum total baggage size: 8,192 bytes\n- Maximum number of entries: 180\n- Maximum per-entry size: 4,096 bytes\n\nHeaders that exceed these limits are truncated at the point the limit is reached.\n\n## Workarounds\n\nEnsure 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.\n\n## References\n\n- [W3C Baggage Specification - Limits](https://www.w3.org/TR/baggage/#limits)\n- opentelemetry-java: [GHSA-rcgg-9c38-7xpx](https://github.com/open-telemetry/opentelemetry-java/security/advisories/GHSA-rcgg-9c38-7xpx)\n- opentelemetry-go: [GHSA-mh2q-q3fh-2475](https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-mh2q-q3fh-2475)\n\n## Credit\n\nReported by tonghuaroot.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-06-15T20:38:30.000Z","modified":"2026-10-25T23:10:00.167Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":"< 2.8.0","status":"affected"}],"vendor":"open-telemetry","product":"opentelemetry-js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.8.0"}],"ecosystem":"npm","package":"@opentelemetry/core","purl":"pkg:npm/%40opentelemetry/core","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.8.0"}],"vendor":"opentelemetry","product":"opentelemetry","cpe":"cpe:2.3:a:opentelemetry:opentelemetry:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/open-telemetry/opentelemetry-js/security/advisories/GHSA-8988-4f7v-96qf","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54285","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/open-telemetry/opentelemetry-js","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-06-23T14:48:29.048Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54285","url":"https://www.cve.org/CVERecord?id=CVE-2026-54285","licence":"CVE Terms of Use","modified":"2026-06-23T16:11:07.708Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8988-4f7v-96qf","url":"https://github.com/advisories/GHSA-8988-4f7v-96qf","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:48.883Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54285","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54285","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"}],"updatedAt":"2026-11-25T22:59:25.398Z","epss":{"score":0.00402,"percentile":0.2603,"date":"2026-11-30T12:00:22.000Z"}}