{"id":"CVE-2021-42357","aliases":["CVE-2021-42357","GHSA-vv38-4xcj-q4rw"],"related":[],"kind":"vulnerability","state":"published","title":"DOM based XSS Vulnerability in Apache Knox","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Cuando era usado Apache Knox SSO versiones anteriores a 1.6.1, una petición podía ser diseñada para redirigir a un usuario a una página maliciosa debido a un análisis incorrecto de la URL. Una petición que incluyera un parámetro de petición especialmente diseñado podría ser usada para redirigir al usuario a una página controlada por un atacante. Esta URL tendría que ser presentada al usuario fuera del flujo normal de peticiones mediante una campaña de tipo XSS o phishing","source":"nvd"}],"published":"2022-01-17T19:25:09.000Z","modified":"2026-06-17T04:09:40.963Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"Apache Knox 1.x","fixed":"1.6.1","status":"affected"},{"type":"custom","introduced":"0.12.0","fixed":"Apache Knox 0.x*","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Knox","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.1"}],"ecosystem":"Maven","package":"org.apache.knox:gateway-service-knoxsso","purl":"pkg:maven/org.apache.knox/gateway-service-knoxsso","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.6.1"}],"vendor":"apache","product":"knox","cpe":"cpe:2.3:a:apache:knox:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://lists.apache.org/thread/b7v5dkpyqb51nw0lvz4cybhgrfhk1g7j","tags":["mailing-list","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2022/01/17/2","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42357","tags":["advisory"],"sources":["ghsa"]}],"credits":["Apache Knox would like to thank Kajetan Rostojek for this report"],"assigner":"apache","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-42357","url":"https://www.cve.org/CVERecord?id=CVE-2021-42357","licence":"CVE Terms of Use","modified":"2024-08-04T03:30:38.347Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vv38-4xcj-q4rw","url":"https://github.com/advisories/GHSA-vv38-4xcj-q4rw","licence":"CC-BY-4.0","modified":"2023-11-08T04:07:05.836Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-42357","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42357","licence":"Public domain","modified":"2026-06-17T04:09:40.963Z"}],"updatedAt":"2026-11-25T22:58:06.566Z","epss":{"score":0.02664,"percentile":0.86138,"date":"2026-12-01T12:00:22.000Z"}}