SCA: security update for shescape (GHSA-446w-rrm4-r47f)

medium Tenable Self-Hosted Container Security Plugin ID 409924

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Shescape is a shell escape package for JavaScript. An issue in versions 1.4.0 to 1.5.1 allows for exposure
of the home directory on Unix systems when using Bash with the `escape` or `escapeAll` functions from the
_shescape_ API with the `interpolation` option set to `true`. Other tested shells, Dash and Zsh, are not
affected. Depending on how the output of _shescape_ is used, directory traversal may be possible in the
application using _shescape_. The issue was patched in version 1.5.1. As a workaround, manually escape all
instances of the tilde character (`~`) using `arg.replace(/~/g, "\\~")`. (CVE-2022-24725)

See Also

https://github.com/advisories/GHSA-446w-rrm4-r47f

Plugin Details

Severity: Medium

ID: 409924

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.18

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Low

Base Score: 1.9

Temporal Score: 1.5

Vector: CVSS2#AV:L/AC:M/Au:N/C:P/I:N/A:N

CVSS Score Source: CVE-2022-24725

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 5

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/3/2022

Vulnerability Publication Date: 3/3/2022

Reference Information

CVE: CVE-2022-24725