Skip to content
High 8.3

cross-spawnのWindows環境で引数が注入される脆弱性、修正版で対応

CVE-2026-137198 First seen on SecPulse

Summary

Windows環境でcmd.exe経由のコマンドに信頼できない引数を渡すと、引数が余分に増えたり後続の引数を消費されたりする脆弱性が見つかりました。影響するのは6.0.6から6.0.7未満、7.0.4から7.1.0未満のnode-cross-spawnで、6.0.7と7.1.0で修正されています。npmのcmd-shimsにも関係するため、該当版を使っていないか確認し、修正版への更新を進めてください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Windows環境でcmd.exe経由のコマンドに信頼できない引数を渡すと、引数が余分に増えたり後続の引数を消費されたりする脆弱性が見つかりました。影響するのは6.0.6から6.0.7未満、7.0.4から7.1.0未満のnode-cross-spawnで、6.0.7と7.1.0で修正されています。npmのcmd-shimsにも関係するため、該当版を使っていないか確認し、修正版への更新を進めてください。

Original description The description as published by the source.

cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. From 6.0.6 until 6.0.7 and from 7.0.4 until 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not correctly double runs of backslashes before a double quote or at the end of an argument. Two or more backslashes could escape the argument's closing quote, allowing attacker-controlled text to become extra arguments or consume following arguments. The caller may not detect the injection when the target accepts the resulting arguments and exits successfully, while a target that rejects an unexpected argument can fail instead. The affected command class includes npm cmd-shims in node_modules/.bin. This can change a target program's operation, although it does not by itself execute a second command and does not affect other platforms. This issue is fixed in versions 6.0.7 and 7.1.0.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details