Description
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.
Severity (CVSS)
| Base score | 6.9 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-697 — Incorrect Comparison
Affected products
| Vendor | Product | Versions |
|---|---|---|
| evolution-foundation | evolution-api | 0 to <=2.3.7 |
References
- https://github.com/geo-chen/oss/blob/main/evolution-api.md (third-party-advisory exploit)
- https://github.com/evolution-foundation/evolution-api/blob/2.3.7/src/api/routes/index.router.ts#L49-L65 (technical-description)
- https://github.com/evolution-foundation/evolution-api (product)
- https://www.vulncheck.com/advisories/evolution-api-through-2.3.7-prometheus-metrics-ip-allowlist-bypass (third-party-advisory)
Generated from the official CVE List on 16 Sep 2026 07:01 UTC.