Medium severity6.0NVD Advisory· Published Mar 17, 2025· Updated Apr 15, 2026
CVE-2025-26042
CVE-2025-26042
Description
Uptime Kuma >== 1.23.0 has a ReDoS vulnerability, specifically when an administrator creates a notification through the web service. If a string is provided it triggers catastrophic backtracking in the regular expression, leading to a ReDoS attack.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
uptime-kumanpm | >= 1.15.0, <= 1.23.16 | — |
uptime-kumanpm | >= 2.0.0-beta.0, < 2.0.0-beta.2 | 2.0.0-beta.2 |
Patches
17a9191761dbefix: make sure that stripping backslashes for notification urls cannot cause catastophic backtracking (ReDOS) (#5573)
2 files changed · +3 −2
server/notification-providers/pushdeer.js+2 −1 modified@@ -11,7 +11,8 @@ class PushDeer extends NotificationProvider { async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { const okMsg = "Sent Successfully."; const serverUrl = notification.pushdeerServer || "https://api2.pushdeer.com"; - const url = `${serverUrl.trim().replace(/\/*$/, "")}/message/push`; + // capture group below is nessesary to prevent an ReDOS-attack + const url = `${serverUrl.trim().replace(/([^/])\/+$/, "$1")}/message/push`; let valid = msg != null && monitorJSON != null && heartbeatJSON != null;
server/notification-providers/whapi.js+1 −1 modified@@ -24,7 +24,7 @@ class Whapi extends NotificationProvider { "body": msg, }; - let url = (notification.whapiApiUrl || "https://gate.whapi.cloud/").replace(/\/+$/, "") + "/messages/text"; + let url = (notification.whapiApiUrl || "https://gate.whapi.cloud/").replace(/([^/])\/+$/, "$1") + "/messages/text"; await axios.post(url, data, config);
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
8- github.com/advisories/GHSA-hx7h-9vf7-5xhgghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-26042ghsaADVISORY
- gist.github.com/ShiyuBanzhou/26c918f93b07f5ce90e8f7000d29c7a0ghsaWEB
- gist.github.com/ShiyuBanzhou/bf4cee61603e152c114fa8c4791f9f28ghsaWEB
- github.com/louislam/uptime-kuma/commit/7a9191761dbef6551c2a0aa6eed5f693ba48d688nvdWEB
- github.com/louislam/uptime-kuma/issues/5574nvdWEB
- github.com/louislam/uptime-kuma/pull/5573nvdWEB
- github.com/louislam/uptime-kuma/security/advisories/GHSA-hx7h-9vf7-5xhgghsaWEB
News mentions
0No linked articles in our index yet.