Information Exposure Affecting hfs package, versions <3.2.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.34% (27th 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 IDSNYK-JS-HFS-17970332
  • published14 Jul 2026
  • disclosed13 Jul 2026
  • creditZach Hanley

Introduced: 13 Jul 2026

NewCVE-2026-61503  (opens in a new tab)
CWE-204  (opens in a new tab)

How to fix?

Upgrade hfs to version 3.2.1 or higher.

Overview

hfs is a HTTP File Server

Affected versions of this package are vulnerable to Information Exposure via differing responses in the loginSrp1 authentication handler in src/api.auth.ts. An attacker can confirm whether an account name exists, including the default admin account, by sending SRP step-1 login requests and comparing the endpoint’s response status and salt behavior for valid versus missing usernames. The login flow returns an immediate unauthorized response for unknown usernames while valid accounts proceed through SRP step 1, creating an observable difference without authentication. This lets a remote unauthenticated attacker probe usernames and then use the confirmed names to support password-guessing and session-forgery attacks.

CVSS Base Scores

version 4.0
version 3.1