CVE-2026-39087: Heckel.io/ntfy/v2 Ntfy.sh Allows A Remote Attacker Vulnerability
CRITICALCVE-2026-39087 is a CRITICAL (CVSS 9.8) ntfy.sh allows a remote attacker vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Heckel.io/ntfy/v2 libraries in the Go ecosystem. The issue involves ntfy.sh allows a remote attacker to execute arbitrary code via the parseactions function. Remediation is available by upgrading affected packages to version 2.22.0.
CVE-2026-39087 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-39087
To remediate this vulnerability, upgrade all affected Heckel.io/ntfy/v2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade heckel.io/ntfy/v2 to 2.22.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for heckel.io/ntfy/v2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-39087, inspect your project dependencies for Heckel.io/ntfy/v2:
inspect dependencies for heckel.io/ntfy/v2
Analyze the terminal output to locate any version of Heckel.io/ntfy/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.22.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Heckel.io/ntfy/v2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-39087 Affected Heckel.io/ntfy/v2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
heckel.io/ntfy/v2
|
Go |
< 2.22.0
|
2.22.0
|
References
Frequently Asked Questions
What is CVE-2026-39087?
Which Heckel.io/ntfy/v2 versions are affected?
What version fixes CVE-2026-39087?
Is heckel.io/ntfy/v2 affected?
What is the CVSS score of CVE-2026-39087?
What CWE is associated with CVE-2026-39087?
How can I check Go dependencies for CVE-2026-39087?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pqhx-w72w-m393",
"modified" : "2026-05-08T16:32:47Z",
"published" : "2026-04-23T18:33:03Z",
"aliases" : [ "CVE-2026-39087" ],
"summary" : "ntfy.sh allows a remote attacker to execute arbitrary code via the parseActions function",
"details" : "An issue in Ntfy ntfy.sh before v.2.22.0 allows a remote attacker to execute arbitrary code via the parseActions function.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "heckel.io/ntfy/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.22.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-39087"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/MightyNawaf/5d41d6e8ead16e217f86b016002ecae5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/binwiederhier/ntfy"
}, {
"type" : "WEB",
"url" : "https://github.com/binwiederhier/ntfy/releases/tag/v2.22.0"
}, {
"type" : "WEB",
"url" : "http://ntfy.com"
}, {
"type" : "WEB",
"url" : "http://ntfysh.com"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-08T16:32:46Z",
"nvd_published_at" : "2026-04-23T16:16:25Z"
}
}