Skip to main content
VulnerabilityPublished

CVE-2026-41696: Spring Data MongoDB · Improper Neutralization of Special Elements in Data Query Logic

Affects Spring Data MongoDBSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.9 Medium · fixed in 5.0.6 : update Spring Data MongoDB when convenient.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 18% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.0.6, 4.5.12, 4.4.15 +5
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
SpringSpring Data MongoDBAffected
  • >=5.0.0 <5.0.6
Fixed in
  • 5.0.6
SpringSpring Data MongoDBAffected
  • >=4.5.0 <4.5.12
Fixed in
  • 4.5.12
SpringSpring Data MongoDBAffected
  • >=4.4.0 <4.4.15
Fixed in
  • 4.4.15
SpringSpring Data MongoDBAffected
  • >=4.3.0 <4.3.17
Fixed in
  • 4.3.17
SpringSpring Data MongoDBAffected
  • >=4.2.0 <4.2.16
Fixed in
  • 4.2.16
SpringSpring Data MongoDBAffected
  • >=4.1.0 <4.1.15
Fixed in
  • 4.1.15

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

If you cannot patch yet, users should avoid using regex parameter binding in @Query methods or implement strict input validation and sanitization on regex parameters to prevent injection of special characters that could break regex quoting.

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.

References

Community reviews

Loading reviews…