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-browser-runtime
CVE-2022-21810 Vulnerability in npm package smartctl
CVE-2022-23496 Vulnerability in maven package nl.basjes.parse.useragent:yauaa-hive
CVE-2015-8861 Vulnerability in maven package org.webjars.bower:handlebars
CVE-2023-42794 Vulnerability in maven package org.apache.tomcat:tomcat-catalina