Description
The optional extension component TinkerpopClientService is missing the Restricted annotation with the Execute Code Required Permission in Apache NiFi 2.0.0-M1 through 2.8.0. The TinkerpopClientService supports configuration of ByteCode Submission for the Script Submission Type, enabling Groovy Script execution in the service prior to submitting the query. The missing Restricted annotation allows users without the Execute Code Permission to configure the Service in installations that use fine-grained authorization and have the optional TinkerpopClientService installed. Apache NiFi installations that do not have the nifi-other-graph-services-nar installed are not subject to this vulnerability. Upgrading to Apache NiFi 2.9.0 is the recommended mitigation.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache NiFi | 2.0.0-M1 – ≤ 2.8.0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
ZeroPathAI/nifi-CVE-2026-39816-poc ★ 1 · Apr 28, 2026
POC for CVE-2026-39816 which allows NiFi users without execute code permissions to run arbitrary scripts
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.nifi:nifi-other-graph-services-nar | >= 2.0.0-M1, < 2.9.0 | 2.9.0 | GHSA-2j9m-25xv-mp6r |
Advisories 1
- WID-SEC-2026-1077 Apache Nifi: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · May 10, 2026
References
- https://lists.apache.org/thread/gh9g7xwvv4l20gzff6q3367snf35ctcb vendor-advisory