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-2018-16131 Vulnerability in maven package com.typesafe.akka:akka-http-core_2.12
CVE-2020-7681 Vulnerability in npm package marscode
CVE-2016-2175 Vulnerability in maven package org.apache.pdfbox:jempbox
CVE-2021-31635 Vulnerability in maven package com.jfinal:jfinal
CVE-2017-5646 Vulnerability in maven package org.apache.knox:gateway