Vulnérabilité dans shescape (CVE-2026-73411)
Résumé
Vulnérabilité dans shescape (CVE-2026-73411). 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 Unix systems that explicitly configure shell to Dash, or true when the default shell is Dash, using the escape and escapeAll APIs in assignments prefixed to a command.
An attacker may be able to obtain the location of the home directory and, depending on how it is used, change the location on which a command operates in unexpected ways.
import * as cp from "node:child_process";
import { Shescape } from "shescape";
// 1. Prerequisites
const options = {
shell: "dash",
// Or
shell: true, // Only if the default shell is Dash
};
// 2. Payload
const payload = ":~";
// 3. Usage
const shescape = new Shescape(options);
let escapedPayload;
escapedPayload = shescape.escape(payload);
// Or
escapedPayload = shescape.escapeAll([payload]);
// And (example)
const result = cp.execSync(`V=${escapedPayload}; echo $V`, options);
// 4. Impact
console.log(result.toString());
// Outputs ":" followed by the user's home directory
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 it 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 1) refrain from using Das…
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-73411 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-73411 » sur le site de l'éditeur.
CVE-2026-73411 (shescape) — CWE-116
Surface d'attaque : shell / true / escape / escapeAll
Correctif : 3.0.1 — appliquer immédiatement
Contournement : Alternatively, users of Shescape can 1) refrain from using Dash, 2) use the env option of the node:child_process API to inject variables with untrusted values instead, or 3) remove all instances of ~ 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 vulnérabilité (CWE-116) 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 1) refrain from using Dash, 2) use the env option of the node:child_process API to inject variables with untrusted values instead, or 3) remove all instances of ~ 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 1) refrain from using Dash, 2) use the `env` option of the `node:child_process` API to inject variables with untrusted values instead, or 3) remove all instances of `~` from untrusted inputs.パッチが適用されるまでの応急処置として、Alternatively, users of Shescape can 1) refrain from using Dash, 2) use the
envoption of thenode:child_processAPI to inject variables with untrusted values instead, or 3) remove all instances of~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