fix(deps): bump @opentelemetry/auto-instrumentations-node to 0.75.0 (CVE-2026-44902)#374
fix(deps): bump @opentelemetry/auto-instrumentations-node to 0.75.0 (CVE-2026-44902)#374Copilot wants to merge 3 commits into
Conversation
|
We require contributors to sign our Contributor License Agreement, and we don't have @copilot on file. You can sign our CLA at https://e2b.dev/docs/cla . Once you've signed, post a comment here that says '@cla-bot check' |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
We require contributors to sign our Contributor License Agreement, and we don't have @copilot on file. You can sign our CLA at https://e2b.dev/docs/cla . Once you've signed, post a comment here that says '@cla-bot check' |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
There was a problem hiding this comment.
Pull request overview
Updates the OpenTelemetry Node auto-instrumentation dependency to remediate CVE-2026-44902 (Prometheus exporter process crash on malformed HTTP requests) by ensuring patched OpenTelemetry Prometheus exporter versions are used in the resolved dependency graph.
Changes:
- Bump
@opentelemetry/auto-instrumentations-nodefrom^0.62.1to^0.75.0. - Regenerate
bun.lock, removing the vulnerable@opentelemetry/[email protected]from the resolved tree and pulling in patched OpenTelemetry dependency versions.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Bumps @opentelemetry/auto-instrumentations-node to the patched major/minor line (>= 0.75.0). |
| bun.lock | Updates the resolved dependency graph so @opentelemetry/[email protected] is no longer present and patched versions are used. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
closing this in favor of #371 |
@opentelemetry/auto-instrumentations-node <=0.74.xtransitively pulls in@opentelemetry/exporter-prometheus <0.217.0, which crashes the Node process on a single malformed HTTP request to the metrics endpoint (uncaughtTypeErrorfromnew URL()with no try/catch).Changes
package.json— bumps@opentelemetry/auto-instrumentations-node^0.62.1→^0.75.0bun.lock— regenerated; transitive@opentelemetry/exporter-prometheusnow resolves to0.217.0(patched) across the full dependency tree; vulnerable0.203.0is goneReachability
This app uses OTLP metric export (
OTLPMetricExporter+PeriodicExportingMetricReader), not the Prometheus built-in server, so the crash path is not reachable under normal configuration. The vulnerable version was still present in the transitive tree and would activate ifOTEL_METRICS_EXPORTER=prometheuswere ever set.Original prompt
This section details the Dependabot vulnerability alert you should resolve
<alert_title>Prometheus exporter process crash via malformed HTTP request</alert_title>
<alert_description>## Summary
A single malformed HTTP request crashes any Node.js process running the OpenTelemetry JS Prometheus exporter. The metrics endpoint (default
0.0.0.0:9464) has no error handling around URL parsing, so a request with an invalid URI causes an uncaughtTypeErrorthat terminates the process.You are affected by this vulnerability if either of the following apply to your application:
@opentelemetry/exporter-prometheusin your code through its built-in server.OTEL_METRICS_EXPORTERenvironment variable includesprometheusAND@opentelemetry/sdk-node@opentelemetry/auto-instrumentations-nodevia--require @opentelemetry/auto-instrumentations-node/register/--import @opentelemetry/auto-instrumentations-node/registerImpact
Denial of service. Any application using the OpenTelemetry Prometheus exporter’s built-in server can be crashed by a single unauthenticated network packet sent to the metrics port. No authentication, special privileges, or prior access is required.
Remediation
Update to the fixed version
Update
@opentelemetry/exporter-prometheusand@opentelemetry/sdk-nodeto version 0.217.0 or later.Update
@opentelemetry/auto-instrumentations-nodeto version 0.75.0 or later.This release adds proper error handling around the URL constructor, returning an HTTP
400response on parse failure rather than allowing the exception to propagate and crash the process.Do Not Expose the Endpoint to Untrusted Users
If updating is not immediately feasible, restrict access to the metrics endpoint so that it is not reachable by untrusted or unauthenticated network clients. For example:
Bind to localhost only by setting the
hostoption to127.0.0.1when configuring thePrometheusExporter, so the port is not exposed on public or shared network interfacesUse a firewall or network policy to restrict access to port
9464(or whichever port you have configured) to only trusted Prometheus scrape hostsPlace the endpoint behind a reverse proxy that filters or validates incoming requests before they reach the exporter
Details
In
PrometheusExporter.ts, the_requestHandlercallsnew URL(request.url, this._baseUrl)without any error handling. Node's HTTP parser accepts absolute-form URIs (e.g.http://) for proxy compatibility, including malformed ones. Whenrequest.urlis"http://", theURLconstructor throwsTypeError: Invalid URL. Since there is no try-catch in the handler, the exception propagates as an uncaught exception and crashes the process.The Prometheus metrics endpoint is unauthenticated by design (Prometheus scrapes it) and binds to
0.0.0.0by default, meaning it is reachable by any network client that can connect to the metrics port.Proof of Concept
Start any Node.js application with the Prometheus exporter running on the default port
9464, then send a single raw TCP packet:The process crashes immediately with: