Read the docs

Code execution through deserialization of pagination cursors in flop

Priority MEDIUM 42CWE-502Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-502.

Summary

Deserialization of untrusted data in woylie flop, from 0.8.0 before 0.26.7, from 0.27.0 before 0.27.3, from 0.28.0 before 0.28.1, and from 0.29.0 before 0.29.2, lets a remote attacker execute code on the server through a crafted pagination cursor. Flop.Cursor.decode/2 decodes the after and before parameters with :erlang.binary_to_term/2 in :safe mode, and its check accepts maps and therefore structs of any module. A cursor can nest an Ecto.Query.DynamicExpr struct with a DBConnection.Stream struct whose :log option then runs an attacker-chosen module, function and arguments (CWE-502).

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

Description from the CNA

Deserialization of Untrusted Data vulnerability in woylie flop allows a remote attacker to execute code on the server via a crafted pagination cursor. Flop.Cursor.decode/2 in lib/flop/cursor.ex decodes the after and before parameters with :erlang.binary_to_term/2 in :safe mode. Its check rejects functions, PIDs, ports and references, but it accepts maps, and therefore structs of any module. Flop passes the decoded values to Ecto as query parameters. A cursor value that nests an Ecto.Query.DynamicExpr struct with a DBConnection.Stream struct as its binding fails the Ecto cast. Ecto then inspects the value for the error message, the Inspect implementation enumerates the stream, and DBConnection calls the module, function and arguments in the :log option of the stream. This issue affects flop: from 0.8.0 before 0.26.7, from 0.27.0 before 0.27.3, from 0.28.0 before 0.28.1, and from 0.29.0 before 0.29.2.

Why it matters now

EPSS 0.0123 68th percentileScored 2026-11-30
Fix Fixed flop (woylie): 0.26.7, 0.27.3, 0.28.1 +1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
woylieflop0.8.0 to before 0.26.7; 0.27.0 to before 0.27.3; 0.28.0 to before 0.28.1; 0.29.0 to before 0.29.20.26.7, 0.27.3, 0.28.1, 0.29.2Patch availableCNA
  • flop Vendorwoylie Affected 0.8.0 to before 0.26.7; 0.27.0 to before 0.27.3; 0.28.0 to before 0.28.1; 0.29.0 to before 0.29.2 Fixed in 0.26.7, 0.27.3, 0.28.1, 0.29.2 Patch available CNA

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:woylie:flop:*:*:*:*:*:*:*:*——woylie
  • cpe:2.3:a:woylie:flop:*:*:*:*:*:*:*:* Versions — — ·woylie

Remediation

Upgrade flop to 0.26.7, 0.27.3, 0.28.1 or 0.29.2, depending on the release branch in use. The sources do not list a vendor advisory for this fix.

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

  • Fix · CNA flop (woylie) Fixed in 0.26.7, 0.27.3, 0.28.1, 0.29.2

Timeline

  1. 2026-11-24 Threatist record created from CVE-2026-130411
  2. 2026-11-24 Alias added: GHSA-pvw5-hqrm-5j3m

References

  • TI-2026-47130 Doggo vulnerable to cross-site scripting via unescaped date field values CVSS 4.0MEDIUM 5.3

Sources