{"id":"CVE-2021-21678","aliases":["CVE-2021-21678","GHSA-r5w3-pfq8-3r82"],"related":[],"kind":"vulnerability","state":"published","title":"Jenkins SAML Plugin allows bypassing CSRF protection for any URL","summary":"Jenkins SAML Plugin 2.0.7 and earlier allows attackers to craft URLs that would bypass the CSRF protection of any target URL in Jenkins.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Jenkins SAML Plugin 2.0.7 and earlier allows attackers to craft URLs that would bypass the CSRF protection of any target URL in Jenkins.","source":"cvelist"},{"lang":"en","text":"An extension point in Jenkins allows selectively disabling cross-site request forgery (CSRF) protection for specific URLs. SAML Plugin implements this extension point for the URL that users are redirected to after login.\n\nIn Jenkins SAML Plugin 2.0.7 and earlier this implementation is too permissive, allowing attackers to craft URLs that would bypass the CSRF protection of any target URL.\\n\\nThis vulnerability was originally introduced in Jenkins SAML Plugin 1.1.3.\n\nJenkins SAML Plugin 2.0.8 restricts which URLs it disables cross-site request forgery (CSRF) protection for to the one URL that needs it.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El Plugin SAML de Jenkins versiones 2.0.7 y anteriores, permiten a atacantes diseñar URLs que podrían evitar la protección CSRF de cualquier URL de destino en Jenkins","source":"nvd"}],"published":"2021-08-31T13:50:15.000Z","modified":"2026-06-17T03:35:58.957Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-352","CWE-693"],"affected":[{"ranges":[{"type":"custom","introduced":"1.1.3","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"2.0.7","status":"affected"},{"version":"1.1.8","status":"unaffected"},{"version":"2.0.3.1","status":"unaffected"}],"vendor":"Jenkins project","product":"Jenkins SAML Plugin","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.0.8"}],"ecosystem":"Maven","package":"org.jenkins-ci.plugins:saml","purl":"pkg:maven/org.jenkins-ci.plugins/saml","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.1.3","lastAffected":"2.0.7"}],"vendor":"jenkins","product":"saml","cpe":"cpe:2.3:a:jenkins:saml:*:*:*:*:*:jenkins:*:*","source":"nvd"}],"references":[{"url":"https://www.jenkins.io/security/advisory/2021-08-31/#SECURITY-2469","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2021/08/31/1","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-21678","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jenkinsci/saml-plugin/commit/e063317ee7e1c64a096e0ac323c7155b786c8b9d","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jenkinsci/saml-plugin","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"jenkins","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21678","url":"https://www.cve.org/CVERecord?id=CVE-2021-21678","licence":"CVE Terms of Use","modified":"2024-08-03T18:23:28.790Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r5w3-pfq8-3r82","url":"https://github.com/advisories/GHSA-r5w3-pfq8-3r82","licence":"CC-BY-4.0","modified":"2024-02-16T08:22:01.448Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21678","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21678","licence":"Public domain","modified":"2026-06-17T03:35:58.957Z"}],"updatedAt":"2026-11-25T22:58:03.572Z","epss":{"score":0.0081,"percentile":0.58064,"date":"2026-12-01T12:00:22.000Z"}}