p PatchFirst

CVE-2022-31179

CVE-2022-31179 · Insufficient escaping of line feeds for CMD in shescape

Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.

Shescape is a simple shell escape package for JavaScript. Versions prior to 1.5.8 were found to be subject to code injection on windows. This impacts users that use Shescape (any API function) to escape arguments for cmd.exe on Windows An attacker can omit all arguments following their input by including a line feed character (`'\n'`) in the payload. This bug has been patched in [v1.5.8] which you can upgrade to now. No further changes are required. Alternatively, line feed characters (`'\n'`) can be stripped out manually or the user input can be made the last argument (this only limits the impact).

CVSS 8.1 · Alta · EPSS 1,4% · Corrección disponible

Publicación
Actualización

Pila tecnológica: node

Productos y versiones afectados

  • shescape

    Versiones
    • < 1.5.8: Afectada

    Sin corrección publicada

  • shescape npm

    Intervalos de versiones afectados
    • SEMVER: < 1.5.8

    Actualiza a 1.5.8

Fuentes originales

Comprueba tu servidor →