Integer Underflow (Wrap or Wraparound) Affecting bellard/quickjs package, versions [,2025.09.13)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th 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-UNMANAGED-BELLARDQUICKJS-13610852
  • published17 Oct 2025
  • disclosed16 Oct 2025
  • creditUnknown

Introduced: 16 Oct 2025

NewCVE-2025-62495  (opens in a new tab)
CWE-191  (opens in a new tab)

How to fix?

Upgrade bellard/quickjs to version 2025.09.13 or higher.

Overview

Affected versions of this package are vulnerable to Integer Underflow (Wrap or Wraparound) due to improper handling of buffer size calculations in the libregexp engine. An attacker can achieve out-of-bounds memory writes by supplying a specially crafted regular expression that causes an integer overflow during offset computation.

CVSS Base Scores

version 4.0
version 3.1