SpEL Expression Injection in Spring Data MongoDB Annotated Query Parameter Binding
CVE-2026-41717 is a Spring Expression Language (SpEL) expression injection vulnerability in Spring Data MongoDB. The flaw occurs during parameter binding when a user-defined repository method uses annotated queries with a capture-all placeholder, including cases described with @Query and, per the provided content, also @Aggregation. Example vulnerable patterns include capture-all placeholders such as @Query("?0") and @Query(":#{?0}"). If untrusted, unsanitized input is passed directly into such repository methods, attacker-controlled input can be interpreted in an unsafe expression context during query construction. Affected versions are 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, and 3.4.0 through 3.4.19.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
An injection vulnerability in Spring Data MongoDB triggered by unsafe annotated query parameter binding that may allow remote code execution on the host server.
A Spring Expression Language (SpEL) expression injection vulnerability in Spring Data MongoDB during parameter binding in user-defined repository query methods annotated with @Query and using a capture-all placeholder.
A Spring Data MongoDB SpEL expression injection vulnerability in annotated query parameter binding that can occur when @Query or @Aggregation methods use capture-all placeholders and untrusted unsanitized input is passed directly to them.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.