# CVE-2021-21678: Jenkins SAML Plugin allows bypassing CSRF protection for any URL

Source: https://junglewise.ai/threats/cve-2021-21678-jenkins-saml-plugin-allows-bypassing-csrf-protection-for-any-url  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-24  
License: CC BY 4.0 with a link back

CVE-2021-21678 · Severity: low · CVSS 3.1 · Published 2022-05-24

Jenkins SAML Plugin allows bypassing CSRF protection for any URL

Technologies: [org.jenkins-ci.plugins:saml (Maven)](https://junglewise.ai/threats/technologies/org-jenkins-ci-plugins-saml). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-21678 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-21678 being exploited in the wild.

**How severe is CVE-2021-21678?** Low severity, with a CVSS score of 3.1, published 24 May 2022.

**Which products and versions are affected?** org.jenkins-ci.plugins:saml (Maven) ECOSYSTEM:introduced=0,fixed=2.0.8.

**Is there a fix for CVE-2021-21678?** Yes. org.jenkins-ci.plugins:saml (Maven): upgrade to 2.0.8 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-21678?** Check whether you run org.jenkins-ci.plugins:saml (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.jenkins-ci.plugins:saml (Maven): upgrade to 2.0.8 or later

  ```sh
  # set org.jenkins-ci.plugins:saml to 2.0.8 in your pom.xml or build.gradle
  ```


## Affected products

- org.jenkins-ci.plugins:saml (Maven) ECOSYSTEM:introduced=0,fixed=2.0.8

## Identifiers

- CVE-2021-21678
- GHSA-r5w3-pfq8-3r82

## Related threats

- [Jenkins SAML Plugin does not implement a replay cache](https://junglewise.ai/threats/cve-2025-64131-jenkins-saml-plugin-does-not-implement-a-replay-cache)
- [Jenkins SAML Plugin Session Fixation vulnerability](https://junglewise.ai/threats/cve-2018-1000602-jenkins-saml-plugin-session-fixation-vulnerability)
