CVE-2026-129784 Insecure deserializaiton in the httpx Ruby gem via unsafe Oj object-mode
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Ubuntu
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.
Upgrade path
2 packages: 1 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/ruby-httpx(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| rubygems httpx(RubyGems) | >= 1.9.0, < 1.9.1 | 1.9.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems httpx(RubyGems) | >= 1.9.0, < 1.9.1 | 1.9.1 |
| ubuntu/ruby-httpx(Ubuntu:26.10) | All versions | No fix listed |
References
- httpx repository product
- httpx on RubyGems product
- Fix commit: json: fix oj integration to avoid RCE mode patch
- httpx v1.9.1 (fixed version) patch
- Oj security documentation: :object mode and safe loading technical-description
- gitlab.com product
- gitlab.com patch
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2026-126245 third-party-advisory