You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Security
CSV output no longer lets a spreadsheet run file text as a formula
(CWE-1236, CSV injection). X12 names and free text may start with =, +, - or @, so a crafted 835 or 837 could put a formula such as =HYPERLINK(...) into the CSV from write_csv, x12sdk-table or the
playground's download, where Excel or LibreOffice would run it on opening.
Such text is now prefixed with an apostrophe; plain numbers are unchanged. write_csv(..., escape_formulas=False) keeps the old output for programs
that read the CSV, and the new x12sdk.tables.spreadsheet_safe applies the
rule to one value. read_lines and to_dataframe are unchanged.
The playground declares a strict Content Security Policy: it runs only
its own scripts (moved from inline into app.js), and the page may not load
or send anything to another site, so injected content could neither run nor
send data anywhere. The Python runtime still loads in its worker from the
pinned Pyodide CDN and PyPI.
Workflows pin every GitHub Action to a commit SHA, so a moved tag cannot
change what runs in CI or the release; Dependabot opens a pull request when
a pinned action has a new release. Continuous integration also declares a
read-only token.