csv-formula-injection

Detect spreadsheet formula injection risks in CSV export workflows.

11|4|Updated Jun 7, 2026
One-click install
npx skills add https://github.com/sayseven7/frameseven --skill csv-formula-injection-sayseven7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csv-formula-injection
Source: https://github.com/sayseven7/frameseven/tree/main/internal/mcp/skills/csv-formula-injection
Command: npx skills add https://github.com/sayseven7/frameseven --skill csv-formula-injection-sayseven7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps identify and mitigate CSV and spreadsheet formula injection risks before exported data is opened in Excel, LibreOffice Calc, Google Sheets, or similar tools.

Core Features & Use Cases

  • Formula trigger detection: Spots leading characters and patterns that can make spreadsheet cells evaluate as formulas.
  • Controlled payload testing: Supports safe validation of DDE-style and cloud-sheet import behaviors in authorized environments.
  • Export hardening guidance: Recommends sanitization and neutralization techniques for reports, exports, and imported user data.
  • Use case: A product team exporting user comments to CSV can use this Skill to test whether any field could execute when opened by an analyst.

Quick Start

Use the csv-formula-injection skill to review exported CSV fields for formula-triggering prefixes and recommend safe mitigations.

Frequently Asked Questions about csv-formula-injection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is CSV formula injection in spreadsheet exports?

CSV formula injection happens when user-controlled fields containing formula prefixes or DDE-style payloads execute automatically upon opening exported CSV files in spreadsheet applications like Excel or Google Sheets.

How do I detect spreadsheet formula injection risks in CSV exports?

You detect spreadsheet formula injection risks by evaluating exported CSV fields for formula-triggering prefixes, DDE-style payloads, and cloud-sheet import functions that could execute when opened by analysts.

Does this approach work with both Excel and Google Sheets import pipelines?

Yes, formula injection detection applies to user-controlled fields that may open in Excel, LibreOffice Calc, Google Sheets, or similar reporting and import pipelines across various spreadsheet platforms.

What's the best way to sanitize user-controlled fields before exporting to CSV?

The best way to sanitize user-controlled fields is applying export-layer mitigations and neutralization techniques that strip formula prefixes before generating reports, exports, and imported user data.

Can I safely test DDE-style payloads in authorized spreadsheet environments?

Yes, you can safely validate DDE-style and cloud-sheet import behaviors in authorized environments to understand how formula injection payloads interact with your specific reporting and import workflows.