Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| binwiederhier | ntfy | < 2.38.3 | 2.38.3 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ntfy | No fix yet | — |
| Debian 13 | ntfy | No fix yet | — |
References
- ntfy v2.38.3 Release Notes patch release-notes
- https://github.com/binwiederhier/ntfy/compare/v2.38.3...main issue-tracking
- https://docs.ntfy.sh/releases/#ntfy-server-v2383 release-notes technical-description
- VulnCheck Advisory: ntfy before 2.38.3 SSRF via Web Push Endpoint Allow-list Bypass third-party-advisory