---
id: CVE-2026-91997
title: >-
  evolution-api through 2.3.7 contains an incorrect array comparison in the
  metricsIPWhitelist middleware that always evaluates to false, allowing
  unauthenticated access to the /metrics endpoint
summary: >-
  evolution-api through 2.3.7 contains an incorrect array comparison in the
  metricsIPWhitelist middleware that always evaluates to false, allowing
  unauthenticated access to the /metrics endpoint. Attackers can bypass IP
  whitelist restricti…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-697
vendor: evolution-foundation
product: evolution-api
affected:
  - evolution-api <= 2.3.7
published: '2026-09-15'
updated: '2026-09-15'
sourceUpdated: '2026-09-15T12:17:55.240'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-91997'
references:
  - url: 'https://github.com/evolution-foundation/evolution-api'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/evolution-foundation/evolution-api/blob/2.3.7/src/api/routes/index.router.ts#L49-L65
    label: disclosure@vulncheck.com
  - url: 'https://github.com/geo-chen/oss/blob/main/evolution-api.md'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/evolution-api-through-2.3.7-prometheus-metrics-ip-allowlist-bypass
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-15T11:54:50.613929Z'
ingestedAt: '2026-09-15T12:36:50.174Z'
epss: 0.00337
epssPercentile: 0.27171
---

## Overview

evolution-api through 2.3.7 contains an incorrect array comparison in the metricsIPWhitelist middleware that always evaluates to false, allowing unauthenticated access to the /metrics endpoint. Attackers can bypass IP whitelist restrictions to access sensitive metrics disclosing server version, database client name, configured server URL, and WhatsApp instance details.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
