CVE-2019-10787
JavaScript vulnerability analysis and mitigation

Overview

The CVE-2019-10787 vulnerability affects im-resize through version 2.3.2, a Node.js package designed for efficient image resizing using ImageMagick's convert command. The vulnerability was discovered and disclosed on April 3, 2019, allowing remote attackers to execute arbitrary commands via the 'exec' argument (CVE-MITRE).

Technical details

The vulnerability stems from insufficient input validation in the index.js file, where the cmd argument can be controlled by users without proper sanitization. This allows attackers to inject malicious commands that will be executed by the system (Snyk-Report). A proof-of-concept exploit demonstrates that an attacker can execute arbitrary system commands by manipulating the image path parameter (GitHub-Commit).

Impact

When successfully exploited, this vulnerability can lead to arbitrary command execution on the affected system, potentially resulting in complete system compromise. The vulnerability has a high severity rating due to its potential for remote code execution without requiring special privileges or user interaction (Snyk-Report).

Mitigation and workarounds

A fix has been implemented in the master branch of the project that includes input validation to check for suspicious characters using regex patterns. The fix prevents the execution of commands containing potentially malicious characters such as semicolons, ampersands, backticks, dollar signs, and parentheses (GitHub-Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23947CRITICAL9.3
  • JavaScriptJavaScript
  • @orval/core
NoYesJan 20, 2026
CVE-2026-23950HIGH8.8
  • JavaScriptJavaScript
  • grafana-graphite
NoYesJan 20, 2026
CVE-2026-22037HIGH8.4
  • JavaScriptJavaScript
  • @fastify/express
NoYesJan 19, 2026
CVE-2026-23522LOW3.7
  • JavaScriptJavaScript
  • @lobehub/chat
NoNoJan 19, 2026
CVE-2025-66803LOW1.7
  • JavaScriptJavaScript
  • @hotwired/turbo
NoYesJan 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management