{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.3.7"
              },
              {
                "fixed": "2.3.7"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "DESCRIPTION"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "cd800f2976e1e5b682fbf86a01ee4d85ae61f370"
            }
          ],
          "repo": "https://github.com/evolution-foundation/evolution-api",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-697"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/91xxx/CVE-2026-91997.json"
  },
  "details": "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.",
  "id": "CVE-2026-91997",
  "modified": "2026-09-17T03:30:19.519049492Z",
  "published": "2026-09-15T11:35:51.378Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/91xxx/CVE-2026-91997.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-91997"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/evolution-api-through-2.3.7-prometheus-metrics-ip-allowlist-bypass"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/evolution-foundation/evolution-api"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/evolution-foundation/evolution-api/blob/2.3.7/src/api/routes/index.router.ts#L49-L65"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/geo-chen/oss/blob/main/evolution-api.md"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "evolution-api through 2.3.7 Prometheus Metrics IP Allowlist Bypass"
}