CVE-2020-7646
JavaScript vulnerability analysis and mitigation

Overview

curlrequest through version 1.0.1 contains an arbitrary file read vulnerability (CVE-2020-7646) that allows reading any file by populating the file parameter with user input. The vulnerability was published and disclosed on May 7, 2020 (Snyk, NVD).

Technical details

The vulnerability is classified as CWE-22 (Path Traversal) with a CVSS v3.1 base score of 6.8 (medium) according to Snyk's assessment. The issue allows attackers to read arbitrary files through the file parameter when making requests using the curlrequest library. The vulnerability exists because the library does not properly validate user input when handling file paths (Snyk).

Impact

When exploited, this vulnerability can lead to unauthorized access to sensitive files on the system, resulting in a total loss of confidentiality for affected resources. An attacker could potentially read any file accessible to the application, including configuration files, private keys, and other sensitive system files (Snyk).

Exploitability

The vulnerability has a documented proof-of-concept exploit. A simple example demonstrates how an attacker can read arbitrary files by manipulating the file parameter: curl.request({ file: userPayload }, function (err, stdout, meta) { console.log("%s %s", meta.cmd, meta.args.join(" ")); }); where userPayload can be set to any file path like '/etc/passwd' (Snyk).

Mitigation and workarounds

There is no fixed version available for the curlrequest package. Users are advised to find alternative solutions or implement proper input validation when handling file paths (Snyk).

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-49473HIGH8.8
  • JavaScript logoJavaScript
  • @cedar-policy/authorization-for-expressjs
NoYesAug 13, 2026
CVE-2026-47717HIGH7.5
  • JavaScript logoJavaScript
  • fuxa-server
NoYesAug 12, 2026
CVE-2026-47718MEDIUM5.5
  • JavaScript logoJavaScript
  • fuxa-server
NoYesAug 12, 2026
CVE-2026-73425LOW3.7
  • JavaScript logoJavaScript
  • @astrojs/netlify
NoYesAug 12, 2026
CVE-2026-73427LOW2.1
  • JavaScript logoJavaScript
  • action_text-trix
NoYesAug 12, 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