Description
enpeem through 2.2.0 allows execution of arbitrary commands. The "options.dir" argument is provided to the "exec" function without any sanitization.
Remediation
References
https://github.com/balderdashy/enpeem/blob/master/index.js#L114
https://snyk.io/vuln/SNYK-JS-ENPEEM-559007
Related Vulnerabilities
CVE-2018-11307 Vulnerability in maven package com.fasterxml.jackson.core:jackson-databind
CVE-2020-7663 Vulnerability in maven package org.webjars.npm:websocket-extensions
CVE-2016-6497 Vulnerability in maven package org.xbib.groovy:groovy-ldap
CVE-2022-23221 Vulnerability in maven package com.h2database:h2