GHSA-44vr-rwwj-p88h · 深刻度: critical · エコシステム: npm — Shescape vulnerable to insufficient escaping of whitespace
Shescape is a simple shell escape package for JavaScript. Affected versions were found to have insufficient escaping of white space when interpolating output. This issue only impacts users that use the `escape` or `escapeAll` functions with the `interpolation` option set to `true`. The result is that if an attacker is able to include whitespace in their input they can: 1. Invoke shell-specific behaviour through shell-specific special characters inserted directly after whitespace. 2. Invoke shell-specific behaviour through shell-specific special characters inserted or appearing after line terminating characters. 3. Invoke arbitrary commands by inserting a line feed character. 4. Invoke arbitrary commands by inserting a carriage return character. Behaviour number 1 has been patched in [v1.5.7] which you can upgrade to now. No further changes are required. Behaviour number 2, 3, and 4 have been patched in [v1.5.8] which you can upgrade to now. No further changes are required. The best workaround is to avoid having to use the `interpolation: true` option - in most cases using an alternative is possible, see [the recipes](https://github.com/ericcornelissen/shescape#recipes) for recommendations. Alternatively, users may strip all whitespace from user input. Note that this is error prone, for example: for PowerShell this requires stripping `'\u0085'` which is not included in JavaScript's definition of `\s` for Regular Expressions.
総合評価: CVE-2022-31180 は悪用リスクが高い(79.5/100)。CVSS 深刻度は重大。悪用される可能性が高い(EPSS 1.51%、71 パーセンタイル) 根拠: 公開エクスプロイトが 1 件参照されています(Exploit-DB)。 推奨対応: 公開エクスプロイトが確認されています。影響範囲の確認、緩和策の適用、パッチ適用を優先してください。
リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。
| EDB-ID | ソース | 種別 | 公開 | リンク |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。
| # | 日付 | 旧 EPSS スコア | 新 EPSS スコア | Δ(新 − 旧) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 1.08% | 1.51% | +0.43% |
| 2 | 2026-01-25 | 1.03% | 1.08% | +0.06% |
| 3 | 2025-08-11 | — | 1.03% | — |
EPSS の全履歴 (全 15 件)
この CVE の CVSS 指標。
| ベーススコア | バージョン | 深刻度 | ベクトル | 悪用しやすさ | 影響 | スコアの出典 |
|---|---|---|---|---|---|---|
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
GHSA-44vr-rwwj-p88h · 深刻度: critical · エコシステム: npm — Shescape vulnerable to insufficient escaping of whitespace
| ベンダー | 製品 | バージョン | 生の CPE |
|---|---|---|---|
| shescape_project | shescape | >= 1.4.0, < 1.5.8 | cpe:2.3:a:shescape_project:shescape:*:*:*:*:*:*:*:* |
| URL | タグ |
|---|---|
| https://github.com/ericcornelissen/shescape/pull/322 | Patch Third Party Advisory |
| https://github.com/ericcornelissen/shescape/pull/324 | Patch Third Party Advisory |
| https://github.com/ericcornelissen/shescape/releases/tag/v1.5.7 | Release Notes Third Party Advisory |
| https://github.com/ericcornelissen/shescape/releases/tag/v1.5.8 | Release Notes Third Party Advisory |
| https://github.com/ericcornelissen/shescape/security/advisories/GHSA-44vr-rwwj-p88h | Exploit Third Party Advisory |