Mitigating ImageMagick vulnerabilities in Node.js `
ImageMagick, a widely used library for image manipulation, has been disclosed multiple severe and easily exploitable vulnerabilities. These vulnerabilities allow attackers to execute commands on servers, expose server files, and more. To protect against these vulnerabilities, a new npm package called imagemagick-safe has been released, which disables the vulnerable features by editing ImageMagick's policy.xml configuration file. This package is recommended until new ImageMagick binaries are released, and users can also use it via the gm package. The vulnerabilities are related to processing specific image file types and keywords, such as MVG, URL, and HTTPS, and can be mitigated by disabling support for these formats and keywords.