# CVE-2022-31679: Spring Data REST can expose hidden entity attributes

Source: https://junglewise.ai/threats/cve-2022-31679-spring-data-rest-can-expose-hidden-entity-attributes  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-09-22  
License: CC BY 4.0 with a link back

CVE-2022-31679 · Severity: low · CVSS 3.1 · Published 2022-09-22

Spring Data REST can expose hidden entity attributes

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

## Quick answers

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

**How severe is CVE-2022-31679?** Low severity, with a CVSS score of 3.1, published 22 September 2022.

**Which products and versions are affected?** org.springframework.data:spring-data-rest-core (Maven) ECOSYSTEM:introduced=3.6.0,fixed=3.6.7.

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

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

  ```sh
  # set org.springframework.data:spring-data-rest-core to 3.6.7 in your pom.xml or build.gradle
  ```


## Affected products

- org.springframework.data:spring-data-rest-core (Maven) ECOSYSTEM:introduced=3.6.0,fixed=3.6.7

## Identifiers

- CVE-2022-31679
- GHSA-fv7x-v67w-cvqv

## Related threats

- [VMware Spring Data REST improper access control in Querydsl integration](https://junglewise.ai/threats/cve-2026-41837-vmware-spring-data-rest-improper-access-control-in-querydsl)
- [VMware Spring Data REST information disclosure in exception serialization](https://junglewise.ai/threats/cve-2026-41730-vmware-spring-data-rest-information-disclosure-in-exception)
- [VMware Spring Data REST SpEL injection in JSON Patch processing](https://junglewise.ai/threats/cve-2026-41729-vmware-spring-data-rest-spel-injection-in-json-patch-processing)
- [VMware Spring Data REST improper access control in JSON Patch](https://junglewise.ai/threats/cve-2026-41728-vmware-spring-data-rest-improper-access-control-in-json-patch)
- [Exposure of Resource to Wrong Sphere in Spring Data REST](https://junglewise.ai/threats/cve-2021-22047-exposure-of-resource-to-wrong-sphere-in-spring-data-rest)
