# CVE-2026-129784: Insecure deserializaiton in the httpx Ruby gem via unsafe Oj object-mode

> Attackers controlling fetched URLs can make httpx deserialize JSON into arbitrary Ruby objects, potentially executing code in apps using the oj gem.

- **Severity:** High 8.5 (`CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** Yes (`HTTPX::Response#json`, `Oj.load`)
- **Fix available:** No
- **Published:** 16 Nov 2026
- **Updated:** 16 Nov 2026
- **Also known as:** GHSA-jgqw-w3x2-9h6q, UBUNTU-CVE-2026-129784

## What is CVE-2026-129784?

CVE-2026-129784 is a high-severity unsafe deserialization vulnerability in os85 httpx, published on 16 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official 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.

Weakness: CWE-502 (Deserialization of Untrusted Data)

## Which versions are affected by CVE-2026-129784?

An affected version is only exploitable if your software calls HTTPX::Response#json or Oj.load. Many projects that include it are not exposed.


## How do I fix CVE-2026-129784?

No fix has been published for CVE-2026-129784 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-129784 being exploited?

There is no known exploitation of CVE-2026-129784 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-129784 and fix it if it is affected.

What it is: CVE-2026-129784 is a high-severity unsafe deserialization vulnerability in os85 httpx, published on 16 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-129784 in the wild and no public exploit code.
Exposure: An affected version is only exploitable if your software calls HTTPX::Response#json or Oj.load. Many projects that include it are not exposed.

Affected product: os85 httpx. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
   If an affected version is present, also search the code for calls to HTTPX::Response#json or Oj.load and report whether any exist.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-129784/ (Markdown: https://insights.sbomify.com/CVE-2026-129784/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-129784
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-129784
- OSV: https://osv.dev/vulnerability/CVE-2026-129784

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-129784/
Summaries are generated and may contain mistakes; the official description above is the record.
