CVE-2026-44902: opentelemetry-js: Prometheus exporter process crash via malformed HTTP request

Published May 11, 2026
·
Updated

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 uncaught TypeError that terminates the process.

You are affected by this vulnerability if either of the following apply to your application:

you directly use @opentelemetry/exporter-prometheus in your code through its built-in server. your OTELMETRICSEXPORTER environment variable includes prometheus AND you use @opentelemetry/sdk-node you use @opentelemetry/auto-instrumentations-node via --require @opentelemetry/auto-instrumentations-node/register/--import @opentelemetry/auto-instrumentations-node/register

Impact

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-prometheus and @opentelemetry/sdk-node to version 0.217.0 or later. Update @opentelemetry/auto-instrumentations-node to version 0.75.0 or later.

This release adds proper error handling around the URL constructor, returning an HTTP 400 response on parse failure rather than allowing the exception to propagate and crash the process.

npm install @opentelemetry/exporter-prometheus@latest

Do Not Expose the Endpoint to Untrusted Users

> [!IMPORTANT] > The following mitigations reduce exposure but do not fully remediate the vulnerability. Any client that can reach the metrics endpoint - including your own Prometheus scraper host if compromised - could still trigger the crash. Updating to 0.217.0 is the recommended resolution.

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 host option to 127.0.0.1 when configuring the PrometheusExporter, so the port is not exposed on public or shared network interfaces

Use a firewall or network policy to restrict access to port 9464 (or whichever port you have configured) to only trusted Prometheus scrape hosts

Place the endpoint behind a reverse proxy that filters or validates incoming requests before they reach the exporter

Details

In PrometheusExporter.ts, the requestHandler calls new 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. When request.url is "http://", the URL constructor throws TypeError: 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.0 by 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:

echo -ne 'GET http:// HTTP/1.1\r\nHost: localhost\r\n\r\n' | nc localhost 9464

The process crashes immediately with:

TypeError: Invalid URL at new URL (...) at PrometheusExporter.requestHandler (...)

Other sources

opentelemetry-js is the OpenTelemetry JavaScript Client. Prior to 0.217.0, 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 uncaught TypeError that terminates the process. This vulnerability is fixed in 0.217.0.

MITRE

Affected Software

4 affected componentsFixes available
npm/@opentelemetry/auto-instrumentations-node<0.75.0
0.75.0
npm/@opentelemetry/sdk-node<0.217.0
0.217.0
npm/@opentelemetry/exporter-prometheus<0.217.0
0.217.0
IBM API Connect V12 OnPrem<=All

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@opentelemetry/auto-instrumentations-node to a version that resolves this vulnerability.

    Fixed in 0.75.0
  2. Upgrade

    Upgrade npm/@opentelemetry/sdk-node to a version that resolves this vulnerability.

    Fixed in 0.217.0
  3. Upgrade

    Upgrade npm/@opentelemetry/exporter-prometheus to a version that resolves this vulnerability.

    Fixed in 0.217.0
  4. Upgrade

    Upgrade @opentelemetry/auto-instrumentations-node to a version that resolves this vulnerability.

    Fixed in 0.75.0
  5. Upgrade

    Upgrade @opentelemetry/exporter-prometheus to a version that resolves this vulnerability.

    Fixed in 0.217.0
  6. Upgrade

    Upgrade @opentelemetry/sdk-node to a version that resolves this vulnerability.

    Fixed in 0.217.0
  7. Configuration

    In `PrometheusExporter`, configure `host` to `127.0.0.1` so the metrics server binds to localhost only.

    PrometheusExporter (@opentelemetry/exporter-prometheus) host = 127.0.0.1
  8. Compensating control

    Do not expose the Prometheus exporter endpoint to untrusted users: bind the PrometheusExporter `host` option to `127.0.0.1` so the metrics port (default `9464` or your configured port) is not reachable on public/shared interfaces.

  9. Compensating control

    Place the metrics endpoint behind a reverse proxy that filters/validates incoming requests before they reach the exporter.

  10. Compensating control

    Restrict network access to the metrics port (default `9464` or your configured port) so only trusted Prometheus scrape hosts can reach it (firewall/network policy/ACL).

Event History

May 11, 2026
Advisory Published
via GitHub·02:42 PM
Data Sourced
via GitHub·02:42 PM
DescriptionSeverityWeaknessAffected Software
May 27, 2026
CVE Published
via MITRE·02:49 PM
Data Sourced
via MITRE·02:49 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeakness
Jul 7, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-44902?

CVE-2026-44902 has a critical severity due to its potential to crash Node.js processes without proper error handling.

2

How do I fix CVE-2026-44902?

To fix CVE-2026-44902, upgrade the affected packages to their respective fixed versions: @opentelemetry/auto-instrumentations-node to 0.75.0, @opentelemetry/sdk-node to 0.217.0, and @opentelemetry/exporter-prometheus to 0.217.0.

3

Which versions of software are affected by CVE-2026-44902?

CVE-2026-44902 affects versions of @opentelemetry/auto-instrumentations-node prior to 0.75.0, @opentelemetry/sdk-node prior to 0.217.0, and @opentelemetry/exporter-prometheus prior to 0.217.0.

4

What type of vulnerability is CVE-2026-44902?

CVE-2026-44902 is a denial-of-service vulnerability that causes a crash in Node.js processes via malformed HTTP requests.

5

Is there a workaround for CVE-2026-44902 while waiting for a fix?

Currently, there is no known workaround for CVE-2026-44902, so upgrading to the fixed versions is essential.

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