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.
https://www.vulncheck.com/advisories/ntfy-before-2.38.3-ssrf-via-web-push-endpoint-allow-list-bypass
https://github.com/binwiederhier/ntfy/releases/tag/v2.38.3
https://github.com/binwiederhier/ntfy/compare/v2.38.3...main