Description
ntfy before 2.22.0 allows SSRF because of an unanchored regular expression for web push endpoint URLs.
Published: 2026-04-23
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

ntfy before version 2.22.0 exposes a server‑side request forgery vulnerability due to an unanchored regular expression that validates web push endpoint URLs. Because the regex fails to anchor the protocol component, the server incorrectly accepts malformed URLs, allowing an attacker to craft requests that cause ntfy to resolve and request arbitrary internal or external hosts. The flaw embodies CWE‑777 (Unrestricted Input) and also raises a CWE‑94 (Improper Control of Generation of Code) risk by potentially generating unintended code paths based on parsed input.

Affected Systems

All installations of ntfy versions older than 2.22.0 are impacted. This open‑source notification server is distributed under the ntfy project brand.

Risk and Exploitability

The CVSS score of 6.4 indicates moderate severity, while the EPSS score of < 1 % suggests a low likelihood of exploitation in the near term. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that an attacker could send a crafted HTTP request containing an invalid push endpoint URL that triggers the server to issue outbound requests to arbitrary hosts. Authentication or network restrictions may influence the exact scope of the attack, but the SSRF vector remains possible within trusted networks if the server is publicly reachable.

Generated by OpenCVE AI on July 28, 2026 at 12:56 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade ntfy to version 2.22.0 or newer to apply the vendor patch
  • Restrict access to the server via IP whitelisting or firewall rules so only trusted networks can communicate with it
  • Monitor server logs for unexpected request activity and investigate anomalies that may indicate exploitation attempts

Generated by OpenCVE AI on July 28, 2026 at 12:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-pqhx-w72w-m393 ntfy.sh allows a remote attacker to execute arbitrary code via the parseActions function
History

Tue, 28 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Title Server‑Side Request Forgery in ntfy via Unanchored Regex

Tue, 21 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Title Server‑Side Request Forgery in ntfy via Unanchored Regex

Fri, 17 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Title SSRF Vulnerability in ntfy Due to Unanchored Endpoint URL Validation

Tue, 14 Jul 2026 22:00:00 +0000

Type Values Removed Values Added
Title SSRF Vulnerability in ntfy Due to Unanchored Endpoint URL Validation

Sat, 11 Jul 2026 04:00:00 +0000

Type Values Removed Values Added
Title SSRF via Unanchored Regular Expression in ntfy before v2.22.0

Thu, 09 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
Title SSRF via Unanchored Regular Expression in ntfy before v2.22.0

Thu, 09 Jul 2026 03:45:00 +0000

Type Values Removed Values Added
Title Server‑Side Request Forgery via Unanchored URL Validation in ntfy

Tue, 07 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
Title Server‑Side Request Forgery via Unanchored URL Validation in ntfy

Mon, 06 Jul 2026 13:00:00 +0000

Type Values Removed Values Added
Title SSRF Vulnerability in ntfy Web Push Endpoint Parsing

Mon, 06 Jul 2026 04:15:00 +0000

Type Values Removed Values Added
Title SSRF Vulnerability in ntfy Web Push Endpoint Parsing

Sat, 04 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
Description ntfy before 2.22.0 allows SSRF because of an unanchored regular expression. ntfy before 2.22.0 allows SSRF because of an unanchored regular expression for web push endpoint URLs.
Weaknesses CWE-777
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Mon, 04 May 2026 07:15:00 +0000

Type Values Removed Values Added
Title Remote Code Execution via Action Parsing in Ntfy ntfy.sh

Mon, 04 May 2026 05:30:00 +0000

Type Values Removed Values Added
Description An issue in Ntfy ntfy.sh before v.2.21 allows a remote attacker to execute arbitrary code via the parseActions function ntfy before 2.22.0 allows SSRF because of an unanchored regular expression.
References

Tue, 28 Apr 2026 21:00:00 +0000

Type Values Removed Values Added
Title Remote Code Execution via Action Parsing in Ntfy ntfy.sh

Tue, 28 Apr 2026 09:45:00 +0000

Type Values Removed Values Added
First Time appeared Ntfy
Ntfy ntfy.sh
Vendors & Products Ntfy
Ntfy ntfy.sh

Thu, 23 Apr 2026 19:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-94
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 23 Apr 2026 15:45:00 +0000

Type Values Removed Values Added
Description An issue in Ntfy ntfy.sh before v.2.21 allows a remote attacker to execute arbitrary code via the parseActions function
References

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-07-05T16:16:27.697Z

Reserved: 2026-04-06T00:00:00.000Z

Link: CVE-2026-39087

cve-icon Vulnrichment

Updated: 2026-04-23T18:58:08.343Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-04-23T16:16:25.063

Modified: 2026-06-17T10:41:50.797

Link: CVE-2026-39087

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-28T13:00:18Z

Weaknesses
  • CWE-777

    Regular Expression without Anchors

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')