BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2026-39956 in Jqlang Jq

Medium 6.1

jq is a command-line JSON processor. Prior to version 1.8.2, the _strindices builtin in jq's src/builtin.c passes its arguments directly to jv_string_indexes() without verifying they are strings, and jv_string_indexes() in src/jv.c relies solely on assert() checks that are stripped in release builds compiled with -D...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.16.1
EPSS0.2%
EPSS percentile5th
FixUnknown

Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Jqlang Jq ≥ 2026-04-02, < 2026-04-08

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

jq is a command-line JSON processor. Prior to version 1.8.2, the _strindices builtin in jq's src/builtin.c passes its arguments directly to jv_string_indexes() without verifying they are strings, and jv_string_indexes() in src/jv.c relies solely on assert() checks that are stripped in release builds compiled with -DNDEBUG. This allows an attacker to crash jq trivially with input like _strindices(0), and by crafting a numeric value whose IEEE-754 bit pattern maps to a chosen pointer, achieve a controlled pointer dereference and limited memory read/probe primitive. Any deployment that evaluates untrusted jq filters against a release build is vulnerable. This issue has been patched in commit fdf8ef0f0810e3d365cdd5160de43db46f57ed03, which is part of version 1.8.2.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-39956
BreachSpider IDBS-2026-GLOBAL-151842-M
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Published2026-04-13
Last modified2026-10-26
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-125: Out-of-Bounds Read

Software reads data past the boundary of an allocated buffer, leaking sensitive information or causing crashes.

CWE-476: NULL Pointer Dereference

Software attempts to use a NULL pointer, causing a crash and denial of service.

CWE-843: CWE-843

Related attack patterns (CAPEC)

CAPEC-540 Overread Buffers via CWE-125

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in jq, a command-line JSON processor, allows an attacker to crash the application by exploiting improper argument validation in the _strindices builtin function.

The vulnerability exists in the _strindices builtin function in jq's src/builtin.c, where arguments are passed directly to jv_string_indexes() without validation. The jv_string_indexes() function in src/jv.c uses assert() checks that are removed in release builds, making it possible for an attacker to provide non-string arguments, leading to a crash.

Questions

What is CVE-2026-39956?

A vulnerability in jq, a command-line JSON processor, allows an attacker to crash the application by exploiting improper argument validation in the _strindices builtin function.

What is the CVSS score for CVE-2026-39956?

CVE-2026-39956 has CVSS 6.1 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H. EPSS: 0.2%.

Is CVE-2026-39956 actively exploited?

No confirmed active exploitation of CVE-2026-39956 as of 2026-11-03.

How do I remediate CVE-2026-39956?

Priority: MEDIUM. PSIRT: [email protected]

What systems are affected by CVE-2026-39956?

CVE-2026-39956 affects Jqlang Jq.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Jqlang","product":"Jq","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-26.