# CVE-2026-59438: Spring Integration MongoDbMessageStore allow-list API silently loses effect after startup

- Priority: **Routine**
- Reason: Not severe (CVSS 6.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-12-02 · Modified: 2026-12-03
- Record: https://cvemate.com/vulnerability/CVE-2026-59438 · JSON: https://cvemate.com/vulnerability/CVE-2026-59438/json

## Description

```text
MongoDbMessageStore exposes an addAllowedPatterns() API that restricts which classes may be deserialized from stored ErrorMessage payloads. Its Javadoc does not state that it must be called before the store is initialized. The allow-list is copied by value into the internal converter only once, when the store is initialized. If addAllowedPatterns() is called after initialization, the new patterns are never applied. Because an empty allow-list permits every class, the store continues to deserialize arbitrary classes while the application believes it is restricted.

 An attacker who can influence the serialized bytes stored in the backing MongoDB collection can cause an arbitrary Java class to be deserialized, which may lead to remote code execution through a gadget chain. Applications that configure the allow-list before the store is initialized are not affected.
```

## Signals

- CVSS: 6.6 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.077%, percentile 66.187%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- spring spring integration: ≥ 7.1.0, \< 7.1.2.1 \| ≥ 7.0.0, \< 7.0.7.1 \| ≥ 6.5.0, \< 6.5.12 \| ≥ 6.4.0, \< 6.4.14 \| \< 5.5.23 \| ≥ 7.1.0, \< 7.1.3 \| ≥ 7.0.0, \< 7.0.8

## References

- <https://spring.io/security/cve-2026-59438>
- <https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H&version=3.1>

---

Data as of 2026-12-05T03:48:24.762Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
