ntfy server-side request forgery in web push endpoint validation
Affects ntfy versions before 2.38.3 when the web push feature is enabled on the server. Fixed in 2.38.3.
- Exploited
- No known exploitation
- Fix
- Fixed in 2.38.3
- Who is exposed
- Not reported
Summary
The ntfy software has a server-side request forgery flaw in how it validates web push endpoints. A remote attacker can exploit it over the network without logging in or any user action by crafting an endpoint URL that passes the allow-list check, which makes the server send requests to an attacker-controlled or internal host.
Written by a model
Original 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.
Who should check
Operators of self-hosted ntfy servers older than 2.38.3 that have web push enabled.
“Affecting ntfy < 2.38.3”
What to do
Upgrade to a fixed version: 2.38.3.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-138048 (ntfy before 2.38.3 SSRF via Web Push Endpoint Allow-list Bypass), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-138048 (entry last updated 2026-11-28):
Affected:
- binwiederhier ntfy: fixed in 2.38.3
Fixed versions: 2.38.3.
Conditions (all must be true for the bug to be hit):
- Web push feature is enabled on the ntfy server (source: https://docs.ntfy.sh/releases/#ntfy-server-v2383)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-138048 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-138048 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/binwiederhier/ntfy/releases/tag/v2.38.3
- https://github.com/binwiederhier/ntfy/compare/v2.38.3...main
- https://docs.ntfy.sh/releases/#ntfy-server-v2383
- https://www.vulncheck.com/advisories/ntfy-before-2.38.3-ssrf-via-web-push-endpoint-allow-list-bypass
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-138048
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-138048"}.Affected versions
- binwiederhier ntfyfixed in 2.38.3
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure17/25No login or user action needed, reachable over the network without a login · Unknown: Advisories don't say whether default setups are affected
- Reach?/20Unknown. No tracked technology or package matched
- Severity6.9/10CVSS 6.9
- No patch0/5No signal
What would change the score
- Would score about 69 if added to CISA KEV
- Would score about 64 if CISA's SSVC rates exploitation active
- Would score about 29 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now1 day
- Record last updated
Evidence 6
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Link | docs.ntfy.sh · releases#ntfy-server-v2383 |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-138048 |
| Record | NVD · CVE-2026-138048 |
| Other links 3 | |
| Patch | GitHub · binwiederhier/ntfy · Release v2.38.3 |
| Report | GitHub · binwiederhier/ntfy · compare/v2.38.3...main |
| Link | vulncheck.com · advisories/ntfy-before-2.38.3-ssrf-via-web-push-endpoint-allow-list-bypass |
Questions about CVE-2026-138048
Is CVE-2026-138048 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
The web push endpoint allow-list can be bypassed, so the ntfy server can be made to send web push POST requests to an attacker-controlled or internal host. This is a server-side request forgery (SSRF).
Source: docs.ntfy.sh, vulncheck.com
Which versions are affected by CVE-2026-138048?
ntfy: before 2.38.3.
Source: cve.now feed data
Am I affected, and how do I check?
ntfy versions before 2.38.3 are affected, but only when the web push feature is enabled on the server. Check the installed ntfy version and whether web push is enabled in the server settings.
Source: docs.ntfy.sh, vulncheck.com
How do I fix CVE-2026-138048?
Upgrade ntfy to version 2.38.3 or later. The upgrade is recommended for any server that has web push enabled.
Source: docs.ntfy.sh, vulncheck.com
Related
- CVE-2026-126984Pulp_python: pulp_python: pull-through caching fetches a client-supplied url with the remote's credentials
- CVE-2026-137954Pydantic Deep 0.2.18 before 0.4.0 SSRF and File Read via /export/pdf
- CVE-2026-137543LaraDashboard before 1.5.2 SSRF via ai_ollama_base_url and generate-seo endpoint
- CVE-2026-80475Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains a Server-Side Request Forgery (SSRF) vulnerability.
- CVE-2026-80448Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains a Server-Side Request Forgery (SSRF) vulnerability.
- CVE-2026-138033mcp-video-analyzer 0.2.0 before 0.10.1 SSRF via Direct Video URLs
No corrections so far. Something wrong on this page? Report an error.