Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nodejs breaking change CVE-2024-27980 #973

Merged
merged 11 commits into from
May 3, 2024
Merged

Conversation

benibenj
Copy link
Contributor

@benibenj benibenj commented May 2, 2024

This pull request fixes a nodejs breaking change related to CVE-2024-27980.

Documentation: https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2

fixes #969

@benibenj benibenj enabled auto-merge May 2, 2024 09:36
@vscodenpa vscodenpa added this to the May 2024 milestone May 2, 2024
@benibenj benibenj disabled auto-merge May 2, 2024 09:40
@benibenj benibenj requested a review from joaomoreno May 2, 2024 13:55
src/package.ts Outdated Show resolved Hide resolved
src/package.ts Outdated Show resolved Hide resolved
src/package.ts Show resolved Hide resolved
}

// Add quotes as commit message is passed as a single argument to the shell
return `"${sanitizedMessage}"`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure that explicit quotes are really necessary when using shell: true, since I didn't find any reference to that in the docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With shell: false the arguments are passed directly to the executable as an array compared to shell; true for which they are pasted into the shell. To make sure that strings with spaces in them are considered as a single argument, quotes have to be added.

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.

Windows, error "spawn EINVAL" when publishing
3 participants