Skip to content

F3: CSV export does not neutralise spreadsheet formula injection #83

Closed

Description

@amar-python

Found in ART Milestone 0 (#53). Code read at main 032b522.

Problem

csv-table-hub-main/src/lib/export.ts:43-46 (escapeCsv) quotes values containing ", , or a newline. It does not neutralise values starting with =, +, -, @, tab or carriage return. The error-report and audit-report CSV exports contain user-supplied cell values, so opening an export in Excel can execute a formula payload such as =HYPERLINK(...).

Fix

Prefix such values with ' (OWASP CSV injection guidance) in escapeCsv. Check whether the XLSX path (json_to_sheet) needs the same treatment. Add vitest cases with formula payloads.

Part of ART M1. BR-35.


Generated by Claude Code

Activity

  1. added this to the ART extension milestone on Oct 26, 2026
  2. added 2 commits that reference this issue on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    artART framework extension worksecuritySecurity

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions