OS Command Injection Affecting hfs package, versions <0.52.10


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.08% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about OS Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-HFS-7430254
  • published8 Jul 2024
  • disclosed4 Jul 2024
  • creditDaniele

Introduced: 4 Jul 2024

CVE-2024-39943  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade hfs to version 0.52.10 or higher.

Overview

hfs is a HTTP File Server

Affected versions of this package are vulnerable to OS Command Injection via the improper use of execSync instead of spawnSync for executing shell commands.

References

CVSS Scores

version 4.0
version 3.1