Skip to content

Conversation

@osamingo
Copy link
Owner

Summary

  • Update spec reference from draft-mscaldas-csvpp-00 to draft-mscaldas-csvpp-01
  • Add HasFormulaPrefix function for CSV injection detection
  • Add documentation about CSV injection risks and mitigation

Changes

Spec Update

No implementation changes required - draft-01 only adds documentation and security guidance.

Security Feature

New HasFormulaPrefix(s string) bool function detects values starting with =, +, -, @ which spreadsheet applications may interpret as formulas.

if csvpp.HasFormulaPrefix(value) {
    value = "'" + value // Escape for spreadsheet safety
}

Test plan

  • All existing tests pass
  • New TestHasFormulaPrefix test added
  • gofumpt and gostyle checks pass

🤖 Generated with Claude Code

osamingo and others added 2 commits January 28, 2026 20:35
- Update spec reference from draft-mscaldas-csvpp-00 to draft-mscaldas-csvpp-01
- No implementation changes required (only documentation/security guidance updates in spec)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add HasFormulaPrefix function to detect spreadsheet formula prefixes (=, +, -, @)
- Add documentation about CSV injection risks and mitigation
- Following IETF CSV++ draft-01 security guidance (Section 10.1)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@osamingo osamingo self-assigned this Jan 28, 2026
@osamingo osamingo marked this pull request as ready for review January 28, 2026 11:46
@osamingo osamingo merged commit 5a10bc4 into main Jan 28, 2026
3 checks passed
@osamingo osamingo deleted the feat/update-to-spec-01 branch January 28, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants