Description
imageoptim is a Node.js wrapper for some images compression algorithms. imageoptim downloads zipped resources over HTTP, which leaves it vulnerable to MITM attacks. It may be possible to cause remote code execution (RCE) by swapping out the requested tarball with an attacker controlled tarball if the attacker is on the network or positioned in between the user and the remote server.
Remediation
References
https://nodesecurity.io/advisories/194
Related Vulnerabilities
CVE-2019-15658 Vulnerability in npm package connect-pg-simple
CVE-2019-1003005 Vulnerability in maven package org.jenkins-ci.plugins:script-security
CVE-2020-28469 Vulnerability in maven package org.webjars.bowergithub.es128:glob-parent
CVE-2023-36665 Vulnerability in maven package org.webjars.npm:protobufjs
CVE-2022-28366 Vulnerability in maven package net.sourceforge.nekohtml:nekohtml