# Spring Security SAML2 Service Provider is vulnerable to Deserialization of Untrusted Data via JdbcAssertingPartyMetadataRepository

Advisory record · `GHSA-2q7c-5gjm-7q23`

- **Identifiers:** `GHSA-2q7c-5gjm-7q23` · `CVE-2026-40993`
- **State:** Confirmed
- **Severity:** CVSS 7.3 High
- **Critical:** No
- **Weakness (CWE):** [CWE-502](https://cwe.mitre.org/data/definitions/502.html)
- **Tags:** [Insecure deserialization](https://agentprime.io/advisories/tag/deserialization.md)
- **Published:** 10 Jun 2026
- **Updated:** 12 Aug 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 10 Jun 2026, 00:31 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.springframework.security:spring-security-saml2-service-provider` (Maven): affected `>=7.0.0, <7.0.6`; fixed in `7.0.6`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Spring Security SAML2 Service Provider (org.springframework.security:spring-security-saml2-service-provider) versions 7.0.0 through 7.0.5 are affected. An attacker with write access to the saml2_asserting_party_metadata database table used by JdbcAssertingPartyMetadataRepository can store malicious serialized data in the verification and encryption credential columns, which may lead to deserialization of untrusted data. Upgrade to version 7.0.6, which fixes the issue.

Written 2 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.3 High, CVSS 3.1: `CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H`, from CNA (vmware)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0020, the 9th percentile, on 9 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:19 UTC: First seen by agentprime
- 31 Oct 2026, 14:19 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-2q7c-5gjm-7q23)

## Sources

- [GitHub Advisory Database: GHSA-2q7c-5gjm-7q23](https://github.com/advisories/GHSA-2q7c-5gjm-7q23)
- [OSV: GHSA-2q7c-5gjm-7q23](https://osv.dev/vulnerability/GHSA-2q7c-5gjm-7q23)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40993>
- <https://github.com/spring-projects/spring-security>
- <https://github.com/spring-projects/spring-security/releases/tag/7.0.6>
- <https://spring.io/security/cve-2026-40993>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-2q7c-5gjm-7q23>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-2q7c-5gjm-7q23/>. Everything for agents: <https://agentprime.io/llms.txt>.
