-
Notifications
You must be signed in to change notification settings - Fork 213
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
Conversation
} | ||
|
||
// Add quotes as commit message is passed as a single argument to the shell | ||
return `"${sanitizedMessage}"`; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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