HTTPX · CVE-2026-129784 · Package
NO FIX YET · SEE WHAT TO DO
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.
first public Nov 16, 2026 · 1 source
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Applications that use the httpx gem to parse JSON responses while the oj gem is loaded and multi_json is not present. The risk is greatest where the fetched URL can be influenced by a user or an external party. Applications that do not use httpx's JSON decoding, or that run httpx 1.9.1 or later, are not affected.
Not affected if httpx-1.9.1-or-later, multi-json-present, no-json-decoding, oj-not-loaded
Who cares httpx, oj, ruby, rubygems
Gemfile.lock with grep httpx Gemfile.lock; affected is 1.9.0.HTTPX.get(...).json or HTTPX::Response#json on URLs that an attacker can influence.1.9.1The 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.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.