RubySec

Providing security resources for the Ruby community

GHSA-xf4v-w5x5-pv79 (spree): Spree - CSV Formula Injection in Customer Export

Spree - CSV Formula Injection in Customer Export

Published: June 04, 2026

SECURITY IDENTIFIERS

GEM

spree

UNAFFECTED VERSIONS

< 5.2.0

PATCHED VERSIONS

~> 5.2.8 ~> 5.3.6 >= 5.4.3

DESCRIPTION

CSV formula injection (also known as formula injection or CSV injection) affects customer export. User-controlled values customer names, email addresses, and shipping addresses. When an administrator opens a crafted Export in Microsoft Excel or LibreOffice Calc, formulas embedded in user data execute in the context of the administrator's desktop, potentially exfiltrating data or executing OS commands via DDE (Dynamic Data Exchange).

Impact

Vulnerability class: CSV / Formula Injection (CWE-1236)

Who is impacted

Administrators who download and open export files in spreadsheet software are the direct victims. Administrative accounts have access to all store data, payment method configurations, customer PII, and full order history.

RELATED