Skip to content
OpenAdvisories

Weakness (CWE)

CWE-1236: Improper Neutralization of Formula Elements in a CSV File

Base Incomplete

The product saves user-provided information into a Comma-Separated Value (CSV) file, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as a command when the file is opened by a spreadsheet product.

How to prevent it (3 mitigations)
  1. Implementation

    When generating CSV output, ensure that formula-sensitive metacharacters are effectively escaped or removed from all data before storage in the resultant CSV. Risky characters include '=' (equal), '+' (plus), '-' (minus), and '@' (at).

  2. Implementation

    If a field starts with a formula character, prepend it with a ' (single apostrophe), which prevents Excel from executing the formula.

  3. Architecture and Design

    Certain implementations of spreadsheet software might disallow formulas from executing if the file is untrusted, or if the file is not authored by the current user.

Source: MITRE CWE-1236

112 results · Clear filters · Feed

  • Medium 5.5

    Bahleel CsvExporter.php fputcsv csv injection

    A vulnerability was detected in Bahleel 0.1.0/0.1.1. Affected is the function fputcsv of the file app/Exporters/CsvExporter.php. The manipulation results in csv injection. The attack may be launched remotely. The project was informed of the problem early thro…

  • Medium 4.1

    Tanium addressed an improper output sanitization vulnerability in Discover.

    Tanium addressed an improper output sanitization vulnerability in Discover.

  • Medium 5.4

    AzuraCast before 0.24.0 Stored CSV Formula Injection via Bulk Media Export

    AzuraCast before 0.24.0 contains a stored CSV formula injection vulnerability that allows station users with Media permission to persist formula-prefixed metadata via bulk media import. Attackers can import crafted titles, artists, or custom fields through /a…

  • Medium 5.3

    Joomla Extension - icagenda.com - CSV formula injection in the registrations export in iCagenda 3.5.0 to 4.0.16

    Joomla Extension - icagenda.com - CSV formula injection in the registrations export in iCagenda 3.5.0 to 4.0.16

  • Medium 4.6

    Part-DB: Spreadsheet Formula Injection in XLSX Part Exports

    Part-DB is an open source inventory management system for electronic components. Prior to version 2.13.2, Part-DB contains a spreadsheet formula injection vulnerability in the part import/export workflow. An authenticated user with permission to import parts …

  • Medium 5.4

    EspoCRM: CSV/Formula Injection sanitizer bypass via leading whitespace/control characters in export

    EspoCRM is an open source customer relationship management application. Prior to 9.3.9, application/Espo/Tools/Export/Format/Csv/Processor.php, application/Espo/Tools/Export/Format/Xlsx/OpenSpoutProcessor.php, and application/Espo/Tools/Export/Format/Xlsx/Php…

  • Medium 4.2

    Thelia before 3.1.2 and 3.2.x before 3.2.1 CSV Formula Injection via Exports

    Thelia before 3.1.2 and 3.2.x before 3.2.1 contains a CSV formula injection vulnerability that allows unauthenticated visitors to inject spreadsheet formulas by supplying crafted registration, checkout or newsletter fields. Attackers can submit names, address…

  • Medium 6.1

    Insufficient Neutralization of Formula Elements in CSV Exports

    User-controlled values are not sufficiently neutralized when included in CSV exports. Values originating from user input, including data submitted by authenticated users or received through external communication channels such as email, may be stored in field…

  • Medium 4.2

    OpenPanel through 2.3.0 CSV Formula Injection via Cohort Member Export

    OpenPanel through 2.3.0 contains a CSV formula injection vulnerability that allows unauthenticated attackers to embed spreadsheet formulas by supplying crafted profile IDs to the /track endpoint. Attackers can send tracking events with profile IDs like =HYPER…

  • Medium 5.4

    OpenClaw before 2026.8.1 CSV Formula Injection via Attendance Export

    OpenClaw versions before 2026.8.1 fail to neutralize spreadsheet formula characters in participant display names within attendance CSV exports. Attackers can inject formula-like cells that execute with spreadsheet user permissions when the export is opened in…

  • Medium 5.4

    OpenClaw before 2026.8.1 CSV Formula Injection via Session Labels

    OpenClaw (npm package `openclaw`) before 2026.8.1 does not neutralize leading characters that spreadsheet applications interpret as formulas when the Control UI exports session data to CSV. Although session labels were quoted as CSV text, a lower-trust partic…

  • Medium 5.4

    WWBN AVideo CSV Formula Injection via myComments.download.php

    WWBN AVideo through commit c3edcc274c389816d434acadac07ee78eaf330c1 contains a CSV formula injection vulnerability in the myComments.download.php endpoint that fails to sanitize spreadsheet formula prefixes in comment text. Authenticated users can inject form…

  • Medium 6.5

    Snipe-IT before 8.7.0 CSV Formula Injection via Location-Scoping Export

    Snipe-IT is an IT asset management application. In Snipe-IT master-branch builds after 8.6.3 (the code was never included in a tagged release), SettingsController::downloadLocationScopingReport streams the FMCS location-scoping mismatch report (GET /admin/set…

  • Medium 6.5

    Snipe-IT before 8.7.0 CSV Formula Injection via Asset Acceptance Report

    Snipe-IT through 8.6.3 does not neutralize formula elements in the "unaccepted assets" acceptance report CSV export. ReportsController::postAssetAcceptanceReport builds the CSV by hand (stripping commas and joining rows manually) and, unlike the six sibling e…

  • Medium 5.3

    Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions prior to 5.36.00.00, contains…

  • Medium 5.4

    wger before 2.6 CSV Formula Injection via member export

    wger before 2.6 fails to sanitize first_name and last_name fields in the gym member TSV export endpoint, allowing any gym member to inject spreadsheet formulas. Attackers can inject formulas like =HYPERLINK to exfiltrate admin data or execute code when admins…

  • Medium 4.6

    A CSV injection vulnerability exists in SYS600. Injected malicious formulas can add or modify data to the spreadsheet, …

  • Medium 6.3

    MongoSQL Transition Readiness Tool Improper Neutralization of Formula Elements in Generated Reports

    The MongoSQL Transition Readiness Tool writes database and collection names into its generated CSV reports without neutralizing leading characters that spreadsheet applications treat as formulas. A user with write privileges on the cluster can choose a namesp…

  • Medium 4.6

    Formula Injection in dool project

    Dool in versions up to 1.3.8 is vulnerable to a CSV injection vulnerability when exporting data to a CSV file, as it fails to sanitize cell content beginning with special formula characters like =, +, -, or @. A local attacker can exploit this by running a pr…

  • Medium 6.1

    Velociraptor CSV Formula Injection in Export Pipeline

    When Microsoft Excel imports a CSV file, it executes cells beginning with certain characters as formulas, giving such CSV files arbitrary execution.  Velociraptor fails to sanitize such cells when exporting to CSV from various places such as the GUI, offline …

  • Medium 4.7

    Shlink CSV Formula Injection via Visit Export CLI

    Shlink versions 5.0.0 through 5.1.5 contain a CSV formula injection vulnerability that allows unauthenticated remote attackers to plant spreadsheet formulas into exported visit data by supplying malicious values in User-Agent, Referer, or request path headers…

  • Medium 6.1

    Statamic: CSV formula injection in form submission exports

    Statamic is a Laravel and Git powered content management system (CMS). Prior to 5.73.24 and 6.20.1, form submission values in src/Forms/Exporters/CsvExporter.php were not neutralized for spreadsheet formula characters when exported to CSV. A submission contai…

  • Medium 4.5

    Incorrect neutralisation in the PrestaShop firmware

    In version 8.2.1 of PrestaShop, there is a vulnerability relating to the incorrect sanitisation of elements, caused by inadequate validation of the ‘Alias’ parameter in the ‘Update your address’ function. This flaw allows an attacker to inject malicious expre…

  • Medium 4.8

    Snipe-IT: CSV formula injection in Activity Report export

    Snipe-IT is an IT asset/license management system. Prior to 8.5.0, Actionlog::logaction() stores the request User-Agent header and ReportsController::postActivityReport() writes that value to the Activity Report CSV without formula escaping, allowing a low-pr…

  • Medium 4.2

    Actual: CSV Formula Injection in Transaction Export via Imported Payee/Notes Fields

    Actual is a local-first personal finance tool. Prior to 26.6.0, exportToCSV and exportQueryToCSV in packages/loot-core/src/server/transactions/export/export-to-csv.ts pass user-controlled Payee, Notes, Account, and Category strings to csv-stringify with no ca…

  • Medium 4.6

    Actual: CSV Formula Injection in `@actual-app/cli` `--format csv` Output via Custom `escapeCsv` Helper

    Actual is a local-first personal finance app. Prior to 26.6.0, @actual-app/cli ships a hand-rolled CSV serializer in packages/cli/src/output.ts used whenever the global --format csv option is passed, whose escapeCsv helper only handles RFC 4180 delimiter, quo…

  • Medium 6.9

    Poweradmin: CSV Injection in log export endpoints allows formula execution in spreadsheet applications

    Poweradmin is a web-based DNS administration tool for PowerDNS server. Versions prior to 4.2.4 and 4.3.3 are vulnerable to CSV Injection (Formula Injection) in its log export functionality. User-controlled data — specifically the username field — is written t…

  • Medium —

    Spree: CSV Formula Injection in Customer Export

    ### Summary 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 Li…

  • Medium 4.7

    SourceCodester Pharmacy Sales and Inventory System Supplier Creation export create_supplier csv injection

    A vulnerability was determined in SourceCodester Pharmacy Sales and Inventory System up to 1.0. This issue affects the function create_supplier of the file /Export_csv/export of the component Supplier Creation Interface. This manipulation of the argument Addr…

  • Medium 6.8

    json-2-csv vulnerable to CSV Injection via the preventCsvInjection optio

    Versions of the package json-2-csv from 3.15.0 and before 5.5.11 are vulnerable to CSV Injection via the preventCsvInjection option which can be bypassed. An attacker can inject formulas into CSV files, which execute when the files are opened in spreadsheet a…

  • Medium 4.6

    RT: Spreadsheet downloads vulnerable to CSV/formula injection in Microsoft Excel and similar apps

    RT is an open source, enterprise-grade issue and ticket tracking system. Versions prior to 5.0.10 and 6.0.0 through 6.0.2 contain a spreadsheet (CSV/formula) injection vulnerability. User-controlled data in spreadsheet exports is not sanitized before being wr…

  • Medium 5.8

    Dell ECS versions 3.8.1.0 through 3.8.1.7 and Dell ObjectScale versions prior to 4.3.0.0, contains an improper neutrali…

  • Medium 5.4

    Kimai: Formula Injection via tag names in XLSX export

    Kimai is an open-source time tracking application. From version 2.27.0 to before version 2.54.0, any ROLE_USER can create a tag with a formula string as its name (e.g. =SUM(54+51)) via POST /api/tags and assign it to a timesheet. When an admin exports timeshe…

  • Medium 6.5

    traccar allows CSV formula injection via exported position data

    Traccar is an open source GPS tracking system. In versions between 6.11.1 and 6.13.0, the CSV export functionality writes position data, including user-controlled device and computed attributes, to CSV output without proper escaping. An attacker can inject sp…

  • Medium 5.3

    MaxKB has CSV Injection in its Application Chat Export Functionality

    MaxKB is an open-source AI assistant for enterprise. In versions 2.7.1 and below, the chat export feature is vulnerable to Improper Neutralization of Formula Elements in a CSV File. When an administrator exports the application chat history to an Excel file (…

  • Medium 6.5

    If a malformed data is input to the affected product, a CSV file downloaded from the affected product may contain such …

  • Medium 6.1

    Moodle: moodle: formula injection allows arbitrary formula execution via unescaped data export

    A flaw was found in moodle. This formula injection vulnerability occurs when data fields are exported without proper escaping. A remote attacker could exploit this by providing malicious data that, when exported and opened in a spreadsheet, allows arbitrary f…

  • Medium 5.2

    HUSTOJ is Vulnerable to Stored CSV Injection (Formula Injection) in Contest Rank Export

    hustoj is an open source online judge based on PHP/C++/MySQL/Linux for ACM/ICPC and NOIP training. All versions are vulnerable to CSV Injection (Formula Injection) through the contest rank export functionality (contestrank.xls.php and admin/ranklist_export.ph…

  • Medium 4.7

    SourceCodester Inventory Management System SVC Report Export csv injection

    A security vulnerability has been detected in SourceCodester Inventory Management System 1.0. The affected element is an unknown function of the component SVC Report Export. Such manipulation leads to csv injection. It is possible to launch the attack remotel…

  • Medium 6.6

    Simple User Import Export <= 1.1.7 - Authenticated (Admin+) CSV Injection

    The Simple User Import Export plugin for WordPress is vulnerable to CSV Injection in all versions up to, and including, 1.1.7 via the 'Import/export users' function. This makes it possible for authenticated attackers, with Administrator-level access and above…