CVE-2021-42357DOM based XSS Vulnerability in Apache Knox
- 6.1MediumCVSS base score
- 2.7%Exploitation in 30 daysEPSS · top 14% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
When using Apache Knox SSO prior to 1.6.1, a request could be crafted to redirect a user to a malicious page due to improper URL parsing. A request that included a specially crafted request parameter could be used to redirect the user to a page controlled by an attacker. This URL would need to be presented to the user outside the normal request flow through a XSS or phishing campaign.
Timeline
ID reserved
By apache
- 3 months later
· 3 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 2.7% · top 14% of all CVEs (17 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.1.
Affected products
Apache Software Foundation · Apache Knox
- affected Apache Knox 1.x – < 1.6.1
- affected 0.12.0 – < Apache Knox 0.x*
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.knox:gateway-service-knoxssoGHSA-vv38-4xcj-q4rw (opens in a new tab)
What to do
Workaround: 1.x users should upgrade to 1.6.1. Unsupported versions of the 0.x line that include this issue are: 0.13.0, 0.14.0. and these should upgrade to 1.6.1 as well. 1.0.0 and 1.1.0 are also Unsupported but affected and should upgrade to 1.6.1.
References
References2
- https://lists.apache.org/thread/b7v5dkpyqb51nw0lvz4cybhgrfhk1g7j (opens in a new tab)x_refsource_MISCx_transferred
- [oss-security] 20220117 CVE-2021-42357: DOM based XSS Vulnerability in Apache Knox (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-0708 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-vv38-4xcj-q4rw (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-42357)Record last updated .