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

Breaking Change in NodeJS 20.12.2 (Error: spawn EINVAL) #12434

Open
mdtsuk opened this issue Apr 19, 2024 · 2 comments
Open

Breaking Change in NodeJS 20.12.2 (Error: spawn EINVAL) #12434

mdtsuk opened this issue Apr 19, 2024 · 2 comments

Comments

@mdtsuk
Copy link

mdtsuk commented Apr 19, 2024

Issue description

After upgrading NodeJS to 20.12.2 deployments fail using serverless V3.37.0 on Windows 10.

Error: spawn EINVAL

Downgrading to NodeJS 20.12.1 works as expected.

Context

Environment: win32, node 20.12.2, framework 3.37.0 (local) 3.38.0v (global), plugin 7.2.0, SDK 4.5.1
(not sure if it's related but I also use serverless-bundle to webpack the deployments)

@mdtsuk
Copy link
Author

mdtsuk commented Apr 19, 2024

According to https://nodejs.org/en/blog/release/v20.12.2

This is a security release.

[Notable Changes](https://nodejs.org/en/blog/release/v20.12.2#notable-changes)
CVE-2024-27980 - Command injection via args parameter of child_process.spawn without shell option enabled on Windows

@Oleks777
Copy link

how to fix this?

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

No branches or pull requests

2 participants