Skip to content

fix: replace tmp dependency with fs.mkdtempSync - #1141

Open
piotrekwitkowski wants to merge 1 commit into
GoogleChrome:mainfrom
piotrekwitkowski:fix/remove-tmp-dependency
Open

piotrekwitkowski wants to merge 1 commit into
GoogleChrome:mainfrom
piotrekwitkowski:fix/remove-tmp-dependency

Conversation

@piotrekwitkowski

Copy link
Copy Markdown

Summary

  • Removes the tmp package from @lhci/cli to eliminate GHSA-52f5-9888-hmc6 (tmp <=0.2.3, arbitrary file write via symbolic link)
  • Replaces tmp.fileSync() with Node built-in fs.mkdtempSync + path.join (available since Node 5.10)
  • Only one usage existed: creating a temp HTML file for the open command

Related

Test plan

  • Module loads without errors
  • No dedicated test for open command exists upstream

Remove the tmp package to eliminate GHSA-52f5-9888-hmc6 (tmp <=0.2.3
allows arbitrary file write via symbolic link). Uses Node built-in
fs.mkdtempSync instead, available since Node 5.10.
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.

1 participant