Skip to content
Heist/ feed
Back to feed
Medium

evolution-api through 2.3.7 Prometheus Metrics IP Allowlist Bypass

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-91997
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 09:53 UTC · Revision 1

Source evidence

evolution-api through 2.3.7 Prometheus Metrics IP Allowlist Bypass

core-osv · Original source

Published 15 Sept 2026, 11:35 UTC

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.

osv:CVE-2026-91997
Complete source record
{
  "id": "f3e6531f24c16c94909fb982c569b94917b0c56f2d7df6b7fd7d2e798bd3da66",
  "url": "https://osv.dev/vulnerability/CVE-2026-91997",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "evolution-api through 2.3.7 Prometheus Metrics IP Allowlist Bypass",
    "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 restrictions to access sensitive metrics disclosing server version, database client name, configured server URL, and WhatsApp instance details.",
    "evidence": "osv:CVE-2026-91997",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-91997",
      "aliases": [
        "CVE-2026-91997"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/evolution-foundation/evolution-api",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "cd800f2976e1e5b682fbf86a01ee4d85ae61f370"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.3.7"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.3.7"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.3.7",
            "2.3.6",
            "2.3.5",
            "2.3.4",
            "2.3.3",
            "2.3.2",
            "2.3.1",
            "2.3.0",
            "2.2.3",
            "2.2.2",
            "2.2.1",
            "2.2.0",
            "2.2.0-pre",
            "1.0.7"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-91997.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.237859057Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/91xxx/CVE-2026-91997.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-91997",
        "https://www.vulncheck.com/advisories/evolution-api-through-2.3.7-prometheus-metrics-ip-allowlist-bypass",
        "https://github.com/evolution-foundation/evolution-api",
        "https://github.com/evolution-foundation/evolution-api/blob/2.3.7/src/api/routes/index.router.ts#L49-L65",
        "https://github.com/geo-chen/oss/blob/main/evolution-api.md"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-697"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/91xxx/CVE-2026-91997.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-91997",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 518930,
  "published_at": "2026-09-15T11:35:51.378+00:00"
}