Conversation
|
@baev Thoughts on this? |
Hi, Any updates on this? Will it be included in the upcoming release? |
|
this PR introduces a new |
|
I did not create batspawn for this PR. I do not even use allure personally, it's used internally at my workplace. The ease of accidentally introducing a security vulnerability, as done in a407329 in this project, was my motivation for reporting nodejs/node#57143, which resulted in a deprecation warning for unsafe usage starting from Node.js 24. Since then, there have been many fixes to different packages to address this issue. This PR is yet another, and contains a test for fixing the security vulnerability. batspawn was created because the existing libraries, such as cross-spawn, do not adequately protect against the BatBadBut vulnerability (eg. moxystudio/node-cross-spawn#171). batspawn implements the escaping mechanism mentioned in the linked article, which is also used by Rust and Zig. More details here. |
|
@mohd-akram thanks for the extra details and sorry if my previous message came across the wrong way. That wasn’t my intention, and I appreciate the work you put into the PR. To clarify, I’m not against fixing the issue, but I’m hesitant to add a dependency that’s still relatively new and not widely used. If you’re open to it, I’d be happy to review a version of the PR that includes the necessary code directly in this repository instead. Thanks again for your contribution and understanding. |
Commit a407329 enabled the
shelloption to fix running on Windows, but that's unsafe and breaks handling of spaces and special characters. Arguments provided to Windows batch files in particular need special escaping that's not provided by Node.js; use batspawn for that purpose.Fixes #30
Fixes #45