Skip to content

Update vulnerable form-data dependencies - #70

Merged
MariaHCD merged 2 commits into
mainfrom
scott/fix-form-data-alerts
Nov 26, 2026
Merged

MariaHCD merged 2 commits into
mainfrom
scott/fix-form-data-alerts

Conversation

@deetergp

@deetergp deetergp commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

Update form-data to patched versions to prevent predictable multipart boundaries and header injection through field names and filenames.

  • Add a root npm override for form-data@^4.0.6 so the test tooling uses a patched version.
  • Update the example lockfile from 3.0.1 to 3.0.5, keeping its existing major version.
  • Limit lockfile changes to form-data and its required dependencies.

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/707730

Tests

Engineering-only manual web smoke test:

  1. Open a terminal in the react-native-key-command repo on this PR branch.
  2. Run npm ci.
  3. Run npm ci --prefix example.
  4. Run DISABLE_ESLINT_PLUGIN=true npm run web --prefix example to avoid the example's conflicting React lint-plugin configurations.
  5. Open the address shown in the terminal.
  6. Press G, Esc, Shift + Esc, Enter, and the up/down arrows, confirming each adds the matching message to the page.
  7. Press Cmd + F and Cmd + Shift + K, confirming each adds the matching message.
  8. Refresh the page.
  9. Repeat a few shortcuts and confirm each press produces one message with no browser-console errors.

QA

Not required. This change updates dependencies used by test tooling, not the shipped library's keyboard-handling code. Validation requires a local development setup and is covered by the engineering test steps above.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@deetergp

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@deetergp
deetergp marked this pull request as ready for review November 23, 2026 23:42
@deetergp
deetergp requested a review from a team November 23, 2026 23:42
@expensify-chore-bot
expensify-chore-bot Bot requested review from MariaHCD and removed request for a team November 23, 2026 23:42
@MariaHCD

Copy link
Copy Markdown
Contributor

Merge conflicts :(

exfy-clabot Bot added a commit to Expensify/CLA that referenced this pull request Nov 24, 2026
@deetergp

Copy link
Copy Markdown
Contributor Author

@MariaHCD Conflicts resolved

@MariaHCD

Copy link
Copy Markdown
Contributor

Oops, conflicts again 😬

@deetergp

Copy link
Copy Markdown
Contributor Author

@MariaHCD I'm not seeing any conflicts? Maybe the self-resolved 🤷‍♂️

@MariaHCD
MariaHCD merged commit 3efab63 into main Nov 26, 2026
5 of 6 checks passed
@MariaHCD
MariaHCD deleted the scott/fix-form-data-alerts branch November 26, 2026 06:12
@os-botify

os-botify Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

🚀 Published to npm in 1.0.33 🎉

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