ntfy Arbitrary Code Execution Vulnerability

Vulnerability

A vulnerability allowing remote code execution has been identified in ntfy versions prior to 2.21. The issue arises in the parseActions function, where an unanchored regular expression is used to validate web push endpoint URLs. This flaw enables attackers to craft URLs that bypass the allow-list and direct requests to arbitrary internal or external destinations.

Impact

Exploitation of this vulnerability allows for arbitrary code execution on the server where ntfy is running.

Remediation

Users can upgrade to ntfy version 2.22.0 or later to address this vulnerability.

Added: Apr 23, 2026, 4:56 PM
Updated: Apr 23, 2026, 4:56 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
6.8
remediation
0.0
relevance
6.5
threat
0.0
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.