# CVE-2021-42357: DOM based XSS Vulnerability in Apache Knox

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.66%, higher than 86% of CVEs (2026-12-01)
- Published: 2022-01-17T19:25:09.000Z
- Modified: 2026-06-17T04:09:40.963Z
- Also known as: GHSA-vv38-4xcj-q4rw
- Weaknesses: CWE-79
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Knox: from Apache Knox 1.x before 1.6.1; from 0.12.0 before Apache Knox 0.x*
- org.apache.knox:gateway-service-knoxsso (Maven): before 1.6.1
- apache knox: before 1.6.1

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://lists.apache.org/thread/b7v5dkpyqb51nw0lvz4cybhgrfhk1g7j> (mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/01/17/2> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42357> (advisory)

## Sources

- CVE List: [CVE-2021-42357](https://www.cve.org/CVERecord?id=CVE-2021-42357), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-vv38-4xcj-q4rw](https://github.com/advisories/GHSA-vv38-4xcj-q4rw), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-42357](https://nvd.nist.gov/vuln/detail/CVE-2021-42357), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-42357 · Whole record: https://cve.day/CVE-2021-42357.json · Rebuilt by cve.day 2026-11-25T22:58:06.566Z
