CVE-2026-130411: Code execution through deserialization of pagination cursors in flop
Published 2026-11-24 · Updated 2026-11-25 · Also known as EEF-CVE-2026-130411
Summary
The Elixir library flop is vulnerable to remote code execution due to insecure deserialization of pagination cursors. Developers using affected versions of the flop package should immediately upgrade to the specified patched releases.
Who is affected
Applications using flop for cursor-based pagination are at risk when processing untrusted input in the 'after' or 'before' parameters. Successful exploitation requires the presence of specific dependencies (Ecto and DBConnection) and an order_by field configured with the :naive_datetime type to trigger the vulnerable gadget chain.
Exploitability
The vulnerability carries a CVSS 4.0 base score of Critical, featuring network-level access, low attack complexity, and high impact on confidentiality, integrity, and availability. With an EPSS score of 0.012, there is a moderate probability of exploit activity, though it is not currently listed in the CISA KEV catalog.
Remediation
- Upgrade to flop version 0.26.7, 0.27.3, 0.28.1, or 0.29.2 as appropriate for your current minor version.
- If an upgrade is not immediately possible, disable cursor-based pagination by setting the 'pagination_types' option to exclude ':first' and ':last', using only offset-based pagination.
How to check your project
- Check your mix.lock file for versions of the 'flop' package falling within the vulnerable ranges (0.8.0-0.26.6, 0.27.0-0.27.2, 0.28.0, and 0.29.0-0.29.1).
- Run 'mix deps' to audit project dependencies and verify the current installation version of flop.
Automated analysis of the published advisory data, generated 2026-11-26. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Hex | flop |
>= 0.8.0, < 0.26.7 | 0.26.7 | mix deps.update flop |
| Hex | flop |
>= 0.27.0, < 0.27.3 | 0.27.3 | mix deps.update flop |
| Hex | flop |
>= 0.28.0, < 0.28.1 | 0.28.1 | mix deps.update flop |
| Hex | flop |
>= 0.29.0, < 0.29.2 | 0.29.2 | mix deps.update flop |
CVSS 4.0 vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | High |
| Integrity (vulnerable system) | High |
| Availability (vulnerable system) | High |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
What is the root cause of this vulnerability?
The vulnerability stems from Flop.Cursor.decode/2 using :erlang.binary_to_term/2 in :safe mode, which allows the deserialization of arbitrary structs. These structs can be crafted to trigger a gadget chain within Ecto and DBConnection that leads to remote code execution.
Is this vulnerability being actively exploited?
There is no record of this vulnerability being included in the CISA Known Exploited Vulnerabilities catalog at this time.
Does this affect all Elixir applications using flop?
No, it specifically affects applications that permit cursor-based pagination and utilize an Ecto schema with an order_by field of the :naive_datetime type, along with the required DBConnection dependency.
Original advisory description
References
- WEB https://cna.erlef.org/cves/CVE-2026-130411.html
- WEB https://github.com/woylie/flop/commit/4535794baa135c8cccca7bb1ada4b64c91afc81d
- FIX https://github.com/woylie/flop/commit/6382b932ce85872b5dcce78e45731dc9ce3be438
- FIX https://github.com/woylie/flop/commit/82e9399a9db6798bbb3bc976969e5aa0f3b0f7a7
- FIX https://github.com/woylie/flop/commit/93fabace5c9cc419fc638d657828feec71b6a6ab
- FIX https://github.com/woylie/flop/commit/bfd9ee23db39b9df6233d085606c19b27b586100
- PACKAGE https://hex.pm/packages/flop
Source records: EEF-CVE-2026-130411 (OSV.dev) · EPSS by FIRST, 2026-11-26.