CVE-2021-42357: Cross-site Scripting in Apache Knox SSO
Summary
CVE-2021-42357: Cross-site Scripting in Apache Knox SSO. Affects org.apache.knox:gateway-service-knoxsso versions < 1.6.1. Fixed in 1.6.1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Apache Knox SSO is a component of the Apache Knox Gateway project, which provides a single point of authentication and access for Apache Hadoop clusters. It enables users to authenticate once and access multiple Hadoop services without the need for repeated authentication. The gateway-service-knoxsso package is responsible for handling single sign-on functionality in Apache Knox. This vulnerability affects versions prior to 1.6.1.
Vulnerability Detail
A cross-site scripting (XSS) vulnerability exists in Apache Knox SSO. Improper URL parsing allows an attacker to craft a request that redirects a user to a malicious page. By including a specially crafted request parameter, an attacker can manipulate the URL and redirect the user to a page controlled by them. This vulnerability can be exploited through XSS or phishing campaigns, where the user is tricked into visiting a malicious website.
How To Fix
Latest published version: 3.0.0 as of 23 Oct 2026
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
1.6.1
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version to mitigate the risk.
Conclusion
In conclusion, Apache Knox SSO prior to version 1.6.1 is vulnerable to a cross-site scripting (XSS) attack. This vulnerability allows attackers to redirect users to malicious pages, potentially leading to further exploitation. It is crucial to upgrade to Apache Knox SSO version 1.6.1 or later to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.apache.knox:gateway-service-knoxsso →
FAQ
Apache Knox SSO is a component of the Apache Knox Gateway project, providing single sign-on functionality for Apache Hadoop clusters.
Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by users.
This vulnerability can be exploited through XSS or phishing campaigns, where users are tricked into visiting a malicious website.
The impact of this vulnerability is that an attacker can redirect users to malicious pages, potentially leading to further exploitation or unauthorized access.
No, there is no known workaround for this vulnerability. Upgrading to the fixed version is the recommended solution.