CVE-2026-138048: ntfy before 2.38.3 SSRF via Web Push Endpoint Allow-list Bypass
ntfy before v2.38.3 contains a server-side request forgery vulnerability that allows remote attackers to bypass the web push endpoint allow-list by crafting a URL containing '#' or '?' characters that satisfy the [^/]+ regex pattern used to validate mozaws.net and notify.windows.com hosts. Attackers can submit an endpoint .example#.mozaws.net/push, which passes validation while Go parses the actual host as attacker.example, causing the server to send subsequent web push POST requests to an attacker-controlled or internal host.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
A remote attacker can exploit it without authentication or user interaction by submitting a crafted web push endpoint URL. Exploitation relies on endpoints whose validation is intended to restrict delivery to mozaws.net or notify.windows.com.
What requests can the attacker cause the server to make?
The attacker can cause subsequent web push POST requests to be sent to an attacker-controlled host or an internal host. The crafted endpoint uses '#' or '?' characters to pass the allow-list regex while Go parses a different actual host.
Which versions are affected?
ntfy versions before 2.38.3 are affected. Updating to version 2.38.3 addresses the issue.