Injection de commande OS dans shescape (CVE-2026-73414)
Résumé
Injection de commande OS dans shescape (CVE-2026-73414). Risque d'opérations non autorisées ou de divulgation. Exploitable via shell. Atténuation : mise à jour vers 3.0.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
This impacts users of Shescape on Windows that explicitly configure shell to CMD, or true with the default shell being CMD, using the escape and escapeAll APIs.
An attacker may be able to achieve shell injection depending on the original command.
import * as cp from "node:child_process";
import { Shescape } from "shescape";
// 1. Prerequisites
const options = {
shell: "cmd.exe",
// Or
shell: true, // Only if the default shell is CMD
};
// 2. Payload
const payload = "x) else if a==a (echo y";
// 3. Usage
const shescape = new Shescape(options);
let escapedPayload;
escapedPayload = shescape.escape(payload);
// Or
escapedPayload = shescape.escapeAll([payload]);
// And (example)
const result = cp.execSync(`if defined FALSY (echo ${escapedPayload})`, options);
// 4. Impact
console.log(result.toString());
// Outputs "y" instead of ""
Patches
This bug has been patched in [v2.1.14] and [v3.0.1] which you can upgrade to now.
If you are already using v3 of Shescape, no further changes are required. If you are using v2 of Shescape is recommended to upgrade as this version reaches end-of-life status on 2026-09-28, follow the [migration guide] to upgrade to v3.
No patches will be released for version of Shescape lower than v2.0.0.
Workarounds
Alternatively, users of Shescape can remove all instances of ( and ) from untrusted inputs.
For more information
- Comment on Pull Request [#2651] for v2 and [#2649] fo…
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-73414 a été découverte dans shescape.
Des attaquants peuvent cibler un point d'entrée spécifique comme shell à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour shescape vers 3.0.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « shescape CVE-2026-73414 » sur le site de l'éditeur.
CVE-2026-73414 (shescape) — CWE-78
Surface d'attaque : shell / true / escape / escapeAll
Correctif : 3.0.1 — appliquer immédiatement
Contournement : Alternatively, users of Shescape can remove all instances of ( and ) from untrusted inputs.
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une injection de commande OS (CWE-78) affecte shescape. Les attaquants atteignent le code vulnérable via shell.
Consultez l'avis de l'éditeur pour les versions affectées de shescape. Surface d'attaque : shell / true / escape / escapeAll.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 3.0.1.
Contournement : Alternatively, users of Shescape can remove all instances of ( and ) from untrusted inputs.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'shescape' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
shescapeを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
Alternatively, users of Shescape can remove all instances of `(` and `)` from untrusted inputs.パッチが適用されるまでの応急処置として、Alternatively, users of Shescape can remove all instances of
(and)from untrusted inputs. を実施。回避策の副作用 (機能低下) を確認した上で。 -
3Apply patch patch
Upgrade shescape to 3.0.1ステージング環境で 3.0.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com