# CVE-2022-22980: SpEL Injection in Spring Data MongoDB

Source: https://junglewise.ai/threats/cve-2022-22980-spel-injection-in-spring-data-mongodb  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-06-24  
License: CC BY 4.0 with a link back

CVE-2022-22980 · Severity: low · CVSS 3.1 · Published 2022-06-24

SpEL Injection in Spring Data MongoDB

Technologies: [org.springframework.data:spring-data-mongodb (Maven)](https://junglewise.ai/threats/technologies/org-springframework-data-spring-data-mongodb). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

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

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

**Which products and versions are affected?** org.springframework.data:spring-data-mongodb (Maven) ECOSYSTEM:introduced=3.4.0,fixed=3.4.1.

**Is there a fix for CVE-2022-22980?** Yes. org.springframework.data:spring-data-mongodb (Maven): upgrade to 3.4.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-22980?** Check whether you run org.springframework.data:spring-data-mongodb (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.springframework.data:spring-data-mongodb (Maven): upgrade to 3.4.1 or later

  ```sh
  # set org.springframework.data:spring-data-mongodb to 3.4.1 in your pom.xml or build.gradle
  ```


## Affected products

- org.springframework.data:spring-data-mongodb (Maven) ECOSYSTEM:introduced=3.4.0,fixed=3.4.1

## Identifiers

- CVE-2022-22980
- GHSA-w24x-87mr-4r23

## Related threats

- [VMware Spring Data MongoDB SpEL injection in @Query methods](https://junglewise.ai/threats/cve-2026-41717-vmware-spring-data-mongodb-spel-injection-in-query-methods)
- [VMware Spring Data MongoDB query injection in @Query regex binding](https://junglewise.ai/threats/cve-2026-41696-vmware-spring-data-mongodb-query-injection-in-query-regex-binding)
