Skip to content

Fix convertToSingleHost to use execFile - #516

Open
Zheng (zhngx1) wants to merge 2 commits into
masterfrom
user/zhengx/fix-convert
Open

Fix convertToSingleHost to use execFile#516
Zheng (zhngx1) wants to merge 2 commits into
masterfrom
user/zhengx/fix-convert

Conversation

@zhngx1

Copy link
Copy Markdown

Summary

Hardens the convertToSingleHost.js conversion script against command injection and updates dependencies to resolve npm audit vulnerabilities.

Changes

  • convertToSingleHost.js: Replace childProcess.exec (shell string) with childProcess.execFile(process.execPath, ...) when invoking office-addin-manifest modify. The manifest CLI is now resolved via require.resolve("office-addin-manifest/cli.js") and arguments are passed as an array with shell: false, so the project name and app ID are no longer interpolated into a shell command line.

@zhngx1
Zheng (zhngx1) requested a review from a team as a code ownerSeptember 8, 2026 18:10
Sign up for freeto 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.

3 participants

@zhngx1@millerds@zhngx