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-25896 Vulnerability in npm package passport
CVE-2018-3719 Vulnerability in maven package org.webjars.npm:mixin-deep
CVE-2022-24794 Vulnerability in npm package express-openid-connect
CVE-2023-45133 Vulnerability in npm package @babel/traverse
CVE-2023-44487 Vulnerability in maven package org.eclipse.jetty.http2:http2-common