VYPR
High severityNVD Advisory· Published Feb 6, 2020· Updated Aug 4, 2024

CVE-2019-10789

CVE-2019-10789

Description

curling.js before 1.1.0 is vulnerable to OS command injection in its run() function, allowing arbitrary command execution.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

curling.js before 1.1.0 is vulnerable to OS command injection in its run() function, allowing arbitrary command execution.

Vulnerability

Overview

The curling.js npm package, a simple wrapper for curl, contains an OS command injection vulnerability in its run(command, cb) function. The root cause is that the command argument is passed directly to a shell without any sanitization, allowing an attacker to inject arbitrary commands. The vulnerable code is located in lib/curl-transport.js [1][2].

Exploitation

Method

An attacker can exploit this by controlling the command argument passed to the run() function. No authentication is required if an attacker can influence this input, such as via a web application that uses user-supplied data in the command string. The Snyk advisory provides a proof-of-concept that uses a semicolon to inject a new command: root.run("& touch JHU", function(){}) [3]. This demonstrates that the input is not sanitized before being executed by the shell.

Impact

Successful exploitation allows an attacker to execute arbitrary OS commands on the server or system running the application that uses the vulnerable curling package. This can lead to full system compromise, data exfiltration, or further lateral movement. The CVSS score is 9.8 (Critical), reflecting the severe remote code execution risk [1].

Mitigation

The vulnerability was patched in curling version 1.1.0. Users should upgrade to this version or later. No workaround is mentioned in the sources, so upgrading is the only recommended course of action. The vulnerability was disclosed and fixed in February 2020 [3].

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
curlingnpm
< 1.1.01.1.0

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

0

No linked articles in our index yet.