Arbitrary JavaScript Code Execution in Alertmanager (CVE-2021-12345)

Arbitrary JavaScript Code Execution in Alertmanager (CVE-2021-12345)

CVE-2023-40577 · MEDIUM Severity

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Alertmanager handles alerts sent by client applications such as the Prometheus server. An attacker with the permission to perform POST requests on the /api/v1/alerts endpoint could be able to execute arbitrary JavaScript code on the users of Prometheus Alertmanager. This issue has been fixed in Alertmanager version 0.2.51.

Learn more about our Cis Benchmark Audit For Server Software.