Unsafe deserialization in the httpx Ruby gem via Oj object mode
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-502.
Summary
The httpx Ruby gem from 1.9.0 before 1.9.1 parses JSON response bodies with Oj in object mode. The response document can instantiate already-loaded Ruby classes and set their instance variables, which is unsafe deserialization (CWE-502). An attacker who controls or influences the URL an application fetches with HTTPX.get(url).json can create objects in the victim process and possibly execute code with a matching gadget chain.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade the httpx gem to version 1.9.1, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
- Fix · CNA httpx (os85) Fixed in 1.9.1
Timeline
- 2026-11-16 Threatist record created from CVE-2026-129784
- 2026-11-16 Alias added: GHSA-jgqw-w3x2-9h6q
- 2026-11-16 CISA SSVC decision points changed
References
Sources
- CVE-2026-129784 · CVE Program
- CVE-2026-129784 · NVD
- GHSA-jgqw-w3x2-9h6q · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences