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-2022-36083 Vulnerability in npm package jose-node-esm-runtime
CVE-2017-16138 Vulnerability in maven package org.webjars.npm:mime
CVE-2017-16066 Vulnerability in npm package opencv.js
CVE-2018-3728 Vulnerability in npm package hoek
CVE-2019-1003088 Vulnerability in maven package egor-n:fabric-beta-publisher