---
id: "CVE-2026-129784"
page: "https://infrastack.ai/live/CVE-2026-129784"
kind: "vulnerability"
aliases: ["CVE-2026-129784"]
title: "httpx Ruby gem: JSON responses can instantiate arbitrary loaded classes"
severity: "high"
cvss: 8.5
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "httpx", "fixed": [], "affected": "", "ecosystem": "rubygems"}]
ecosystems: ["rubygems"]
tags: ["httpx", "oj", "package", "ruby", "rubygems"]
not_affected_if: ["httpx-1.9.1-or-later", "multi-json-present", "no-json-decoding", "oj-not-loaded"]
published_at: "2026-11-16T11:16:45+00:00"
first_seen_at: "2026-11-16T11:41:50+00:00"
updated_at: "2026-11-16T11:42:16+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129784", "first_seen_at": "2026-11-16T11:41:50+00:00"}]
exploit_sources: []
---

# httpx Ruby gem: JSON responses can instantiate arbitrary loaded classes

Link for people: https://infrastack.ai/live/CVE-2026-129784 (this .md is for agents)

The httpx Ruby gem decodes JSON response bodies with Oj in its default object mode when the oj gem is loaded and multi_json is absent. A response can then create instances of any loaded Ruby class and set their instance variables, and with a matching gadget chain this can lead to remote code execution.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- rubygems:httpx affected range not listed fixed no fixed version listed

## How to check

- Check the httpx version in `Gemfile.lock` with `grep httpx Gemfile.lock`; affected is `1.9.0`.
- Check whether the oj gem is loaded and multi_json is absent in the application's dependencies.
- Look for calls to `HTTPX.get(...).json` or `HTTPX::Response#json` on URLs that an attacker can influence.

## Fix

- httpx: move to `1.9.1`

## Timeline

- 2026-11-16T11:41:50+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129784

## Documents

- [fix] Patch: github.com https://github.com/HoneyryderChuck/httpx/commit/eeb785d3250eee9379494fb62c37c315a31e327c
- [fix] Release notes: github.com https://github.com/HoneyryderChuck/httpx/releases/tag/v1.9.1

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
