Out-of-bounds Read Affecting stedolan/jq package, versions [,1.8.2-rc1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (8th 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 Out-of-bounds Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-STEDOLANJQ-16305519
  • published27 Apr 2026
  • disclosed13 Apr 2026
  • credittlsbollei

Introduced: 13 Apr 2026

CVE-2026-39956  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade stedolan/jq to version 1.8.2-rc1 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the _strindices function due to missing runtime type checks on input arguments. An attacker can cause a crash and potentially disclose limited memory contents by supplying crafted input that leads to a controlled pointer dereference and memory read. This is only exploitable if untrusted jq filters are evaluated against a release build compiled with -DNDEBUG.

CVSS Base Scores

version 4.0
version 3.1