CVE-2026-54665: CWE-346 Origin Validation Error in Apache Software Foundation Apache NiFi
Apache NiFi versions 0.0.1 through 2.9.0 allow building qualified URLs from HTTP request headers that are not properly validated. Although version 1.6.0 introduced validation for the Host header, alternative headers such as X-ProxyHost and X-Forwarded-Host were not validated, allowing potential construction of invalid URLs. This issue was addressed in version 2.10.0 by adding validation for these headers when HTTPS is configured. The vulnerability relates to improper origin validation (CWE-346) and can affect URL redirection or data references.
AI Analysis
Technical Summary
Apache NiFi versions from 0.0.1 up to but not including 2.10.0 support building qualified URLs from several HTTP request headers without validating values provided in alternative headers like X-ProxyHost and X-Forwarded-Host. While version 1.6.0 added validation for the Host header, it did not extend this to proxy-related headers, allowing clients to influence URL construction improperly. This origin validation error (CWE-346) can lead to the construction of invalid URLs used in redirection or data references. The issue is mitigated in Apache NiFi 2.10.0 by implementing validation for these headers based on the nifi.web.proxy.host property, which requires HTTPS configuration. Reverse proxy servers should filter and provide allowed header values to NiFi.
Potential Impact
The vulnerability allows an attacker to supply crafted HTTP headers that influence the construction of qualified URLs by Apache NiFi web services. This can result in invalid URLs being generated for redirection or data references, potentially leading to security issues related to URL trust and origin validation. The CVSS 4.0 score of 6.3 indicates a medium severity impact with network attack vector, low attack complexity, no privileges required, no user interaction, and limited impact on confidentiality and integrity, but some impact on availability and resource consumption.
Mitigation Recommendations
Upgrade Apache NiFi to version 2.10.0 or later, which implements validation for the X-ProxyHost and X-Forwarded-Host HTTP request headers based on the nifi.web.proxy.host property. This validation requires configuring the application with HTTPS. Additionally, ensure that reverse proxy servers in front of Apache NiFi filter input request headers and provide only allowed values to the application. Patch status is not explicitly confirmed in the advisory, but upgrading to 2.10.0 is the recommended mitigation.
CVE-2026-54665: CWE-346 Origin Validation Error in Apache Software Foundation Apache NiFi
Description
Apache NiFi versions 0.0.1 through 2.9.0 allow building qualified URLs from HTTP request headers that are not properly validated. Although version 1.6.0 introduced validation for the Host header, alternative headers such as X-ProxyHost and X-Forwarded-Host were not validated, allowing potential construction of invalid URLs. This issue was addressed in version 2.10.0 by adding validation for these headers when HTTPS is configured. The vulnerability relates to improper origin validation (CWE-346) and can affect URL redirection or data references.
CVSS v4.0
Score 6.3medium
Affected software
pkg:maven/Apache Software Foundation/org.apache.nifi:nifi-jettyRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Apache NiFi versions from 0.0.1 up to but not including 2.10.0 support building qualified URLs from several HTTP request headers without validating values provided in alternative headers like X-ProxyHost and X-Forwarded-Host. While version 1.6.0 added validation for the Host header, it did not extend this to proxy-related headers, allowing clients to influence URL construction improperly. This origin validation error (CWE-346) can lead to the construction of invalid URLs used in redirection or data references. The issue is mitigated in Apache NiFi 2.10.0 by implementing validation for these headers based on the nifi.web.proxy.host property, which requires HTTPS configuration. Reverse proxy servers should filter and provide allowed header values to NiFi.
Potential Impact
The vulnerability allows an attacker to supply crafted HTTP headers that influence the construction of qualified URLs by Apache NiFi web services. This can result in invalid URLs being generated for redirection or data references, potentially leading to security issues related to URL trust and origin validation. The CVSS 4.0 score of 6.3 indicates a medium severity impact with network attack vector, low attack complexity, no privileges required, no user interaction, and limited impact on confidentiality and integrity, but some impact on availability and resource consumption.
Mitigation Recommendations
Upgrade Apache NiFi to version 2.10.0 or later, which implements validation for the X-ProxyHost and X-Forwarded-Host HTTP request headers based on the nifi.web.proxy.host property. This validation requires configuring the application with HTTPS. Additionally, ensure that reverse proxy servers in front of Apache NiFi filter input request headers and provide only allowed values to the application. Patch status is not explicitly confirmed in the advisory, but upgrading to 2.10.0 is the recommended mitigation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-06-15T20:22:59.629Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a38edaaeed863c81e7bf7c0
Added to database: 06/22/2026, 08:09:14 UTC
Last enriched: 06/22/2026, 08:24:21 UTC
Last updated: 06/22/2026, 09:03:03 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.