Insecure deserializaiton in the httpx Ruby gem via unsafe Oj object-mode
Summary
| CVE | CVE-2026-129784 |
|---|---|
| State | PUBLISHED |
| Assigner | JFROG |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-16 11:16:45 UTC |
| Updated | 2026-11-16 11:16:45 UTC |
| Description | The httpx Ruby gem parses JSON response bodies through its transcoder layer. HTTPX::Response#json delegates to Transcoder::JSON.decode, and when the oj gem is loaded and multi_json is absent, the decoder falls back to json_load, which calls Oj.load(response.to_s) with no mode option. Oj.load defaults to :object mode, in which a response document can allocate any already-loaded Ruby class ("^o":"ClassName") and set its instance variables, or resolve a class or module reference ("^c":"Name"). An attacker who controls, or can influence, the URL an application fetches with HTTPX.get(url).json therefore controls object instantiation in the victim process. With a matching gadget chain, this issue can potentially cause remote code execution. Affects httpx 1.9.0; fixed in 1.9.1. |
Risk And Classification
Primary CVSS: v3.1 8.5 HIGH from [email protected]
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Problem Types: CWE-502 | CWE-502 CWE-502: Deserialization of Untrusted Data
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 8.5 | HIGH | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| 3.1 | CNA | CVSS | 8.5 | HIGH | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
LowUser Interaction
NoneScope
ChangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| rubygems.org/gems/httpx | [email protected] | rubygems.org | |
| github.com/HoneyryderChuck/httpx | [email protected] | github.com | |
| gitlab.com/os85/httpx/-/commit/eeb785d3250eee9379494fb62c37c315a31e327c | [email protected] | gitlab.com | |
| github.com/ohler55/oj/blob/develop/pages/Security.md | [email protected] | github.com | |
| gitlab.com/os85/httpx | [email protected] | gitlab.com | |
| github.com/HoneyryderChuck/httpx/releases/tag/v1.9.1 | [email protected] | github.com | |
| github.com/HoneyryderChuck/httpx/commit/eeb785d3250eee9379494fb62c37c315... | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Natan Nehorai of the JFrog Vulnerability Research team (en)
CNA: JFrog Security Research (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-11-04T00:00:00.000Z | JFrog reports the issue to the httpx maintainer via email. |
| CNA | 2026-11-13T00:00:00.000Z | Maintainer commits the fix (eeb785d) changing json_load to use Oj :strict mode; released as httpx v1.9.1. |
Solutions
CNA: Upgrade to httpx 1.9.1, which calls Oj.load with an explicit { mode: :strict } default. If upgrading is not possible, pass a safe mode at the call site (response.json(mode: :strict)), or set a safe process-wide default such as Oj.default_options = { mode: :strict } (or :rails) before any untrusted JSON is parsed. Do not rely on Oj's shipped :object default for data that arrived over the network.
There are currently no legacy QID mappings associated with this CVE.