Bug 2588123 (CVE-2026-137199)

Summary: CVE-2026-137199 cross-spawn: cross-spawn: Command injection on Windows when spawning batch files
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: aazores, abarbaro, abrianik, abuckta, akhatavk, akostadi, alizardo, amasferr, amctagga, anujha, aoconnor, aos-team-art-private, aruklets, aschwart, asdas, asoldano, aszczucz, bbaranow, bbrownin, bcaton, bmaxwell, bniver, boliveir, brasmith, bsmejkal, bstansbe, cdrage, cmah, cochase, crizzo, csuconic, dbruscin, dfreiber, dhanak, dkeler, dkuc, dlofthou, dmayorov, doconnor, dpaolell, dranck, drichtar, drosa, drow, dsimansk, dymurray, eaguilar, ebaron, eborisov, ehelms, flucifre, fmariani, gbenhaim, ggrzybek, gmalinko, gmeno, gotiwari, gparvin, groman, gtully, istudens, ivassile, iweiss, jachapma, janstey, jbaesner, jbalunas, jburrell, jchui, jdelft, jhe, jhorak, jkrystof, jlanda, jlledo, jmatsuok, jpasqual, jraez, jsherman, jtolenti, jupierce, juwatts, jwon, kaycoth, kgaikwad, kingland, kshier, ktsao, kvanderr, lball, lblicha, lchilton, lgarciaa, lryznaro, manissin, mbenjamin, mbiarnes, mcarlett, mhackett, mhulan, mnovotny, mosmerov, mposolda, mreynolds, msauton, mstipich, msvehla, mvyas, nboldt, ngough, niyer, nwallace, oaljalju, ogajduse, orabin, osousa, pantinor, parichar, pberan, pdelbell, pesilva, pjindal, pmackay, ppalepu, ppostler, prdhamdh, progier, psrna, rbobbitt, rchan, rexwhite, rgemmell, rgodfrey, rhaigner, rhel-process-autobot, rmartinc, rstancel, rstepani, rushinde, sausingh, sdawley, sfeifer, sghai, shudeshp, sidsharm, simaishi, smallamp, snegrini, sostapov, spichugi, ssilvert, stcannon, sthirugn, sthorger, suppawar, tasato, tbish, tbordaz, tcunning, thason, thjenkin, tlavocat, tmielke, tsedmik, tsze, twaugh, tzimanyi, vashirov, vdosoudi, vereddy, veshanka, vkumar, vlaad, vmuzikar, watson-tool-maintainers, yfang, yguenane, zhunting
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in cross-spawn. An attacker who can supply untrusted input to a Windows application using this library can execute arbitrary commands on the host system. This issue occurs due to improper sanitization of command-line arguments when executing batch files, allowing malicious input to break out of quote boundaries.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-12-01 19:31:46 UTC
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.7 and 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not account for the second cmd.exe parse performed when a batch file outside node_modules/.bin forwards its arguments. A crafted argument could break out of its quotes and execute arbitrary commands through npm.cmd, globally installed package shims, or user batch files. Trailing dots or spaces could bypass batch-file detection. A percent-delimited variable in an argument could be expanded when an environment variable with the same name followed by a caret existed, and an exclamation-delimited variable could be expanded when delayed expansion was enabled in the registry. Other platforms and the intentionally unescaped options.shell mode are not affected. This issue is fixed in versions 6.0.7 and 7.1.0.