CVE-2026-124959 Affecting hnswlib package, versions *


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.16% (6th 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-ECHOLATEST-HNSWLIB-22391685
  • published10 Nov 2026
  • disclosed9 Nov 2026

Introduced: 9 Nov 2026

NewCVE-2026-124959  (opens in a new tab)

How to fix?

There is no fixed version for Echo:latest hnswlib.

NVD Description

Note: Versions mentioned in the description apply only to the upstream hnswlib package and not the hnswlib package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

The loadIndex function in nmslib hnswlib and Spotify Voyager does not verify that the element count in a serialized HNSW index is within the stored capacity used to allocate the heap buffer. An attacker can supply a crafted index file with an element count greater than the stored capacity, causing the loader to write beyond the allocated buffer and potentially crash the application when it loads the file.