{"id":"CVE-2026-129784","kind":"vulnerability","aliases":["CVE-2026-129784"],"related":[],"title":"httpx Ruby gem: JSON responses can instantiate arbitrary loaded classes","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.","summary":"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.","severity":"high","cvss":8.5,"epss":null,"exploited":false,"exploited_at":null,"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"],"how_to_check":"- Check the httpx version in `Gemfile.lock` with `grep httpx Gemfile.lock`; affected is `1.9.0`.\n- Check whether the oj gem is loaded and multi_json is absent in the application's dependencies.\n- 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`","status":"open","published_at":"2026-11-16T11:16:45+00:00","first_seen_at":"2026-11-16T11:41:50+00:00","triaged_at":"2026-11-16T11:42:16+00:00","updated_at":"2026-11-16T11:42:16+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-11-16T11:42:16Z","model":"claude-haiku-5-5","output":{"fix":"- httpx: move to `1.9.1`","reach":"internet","title":"httpx Ruby gem: JSON responses can instantiate arbitrary loaded classes","impact":"high","summary":"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.","audience":"developers","category":"package","nicknames":[],"who_cares":["ruby","httpx","rubygems","oj"],"confidence":0.7,"fix_status":"available","needs_auth":"no","worst_case":"attacker instantiates loaded classes, possibly running code on server","analyst_note":"","how_to_check":"- Check the httpx version in `Gemfile.lock` with `grep httpx Gemfile.lock`; affected is `1.9.0`.\n- Check whether the oj gem is loaded and multi_json is absent in the application's dependencies.\n- Look for calls to `HTTPX.get(...).json` or `HTTPX::Response#json` on URLs that an attacker can influence.","plain_action":"","product_name":"httpx","needs_analyst":false,"not_affected_if":["httpx-1.9.1-or-later","multi-json-present","oj-not-loaded","no-json-decoding"],"who_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.","user_interaction":"no","product_ecosystem":"rubygems","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.001099,"input_tokens":4745,"output_tokens":1250,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-129784':13A,16A '-2026':12A,15A '1.9.0':198C '1.9.1':201C 'absent':48B,108C 'affect':196C 'alloc':136C 'alreadi':139C 'already-load':138C 'applic':169C 'arbitrari':8A 'attack':160C 'back':112C 'bodi':30B,85C 'c':157C 'call':117C 'caus':192C 'chain':70B,187C 'class':10A,59B,142C,153C 'classnam':144C 'code':76B,194C 'control':162C,176C 'creat':53B 'cve':11A,14A 'decod':27B,110C 'default':35B,126C 'deleg':93C 'document':134C 'execut':77B,195C 'fall':111C 'fetch':170C 'fix':199C 'gadget':69B,186C 'gem':3A,26B,41B,81C,101C 'httpx':1A,17A,18B,24B,79C,90C,197C 'httpx.get':172C 'influenc':165C 'instanc':54B,63B,148C 'instanti':7A,178C 'issu':189C 'json':4A,28B,46B,83C,92C,106C,114C,174C 'json.decode':96C 'layer':89C 'lead':73B 'load':9A,43B,57B,103C,115C,140C 'match':68B,185C 'mode':37B,123C,129C 'modul':155C 'multi':45B,105C 'name':158C 'o':143C 'object':36B,128C,177C 'oj':19B,32B,40B,100C 'oj.load':118C,125C 'option':124C 'packag':20B 'pars':82C 'potenti':191C 'process':182C 'refer':156C 'remot':75B,193C 'resolv':151C 'respons':5A,29B,50B,84C,91C,133C 'response.to':119C 'rubi':2A,21B,25B,58B,80C,141C 'rubygem':22B 'set':61B,146C 'therefor':175C 'transcod':88C,95C 'url':167C,173C 'variabl':64B,149C 'victim':181C","nicknames":[],"mitigations":[],"who_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.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["httpx"],"ptokens":["httpx"],"labels":["high","httpx","oj","package","ruby","rubygems"],"campaign_type":null,"search_a":"'-129784':13A,16A '-2026':12A,15A 'arbitrari':8A 'class':10A 'cve':11A,14A 'gem':3A 'httpx':1A,17A 'instanti':7A 'json':4A 'load':9A 'respons':5A 'rubi':2A","search_b":"'absent':48B 'bodi':30B 'chain':70B 'class':59B 'code':76B 'creat':53B 'decod':27B 'default':35B 'execut':77B 'gadget':69B 'gem':26B,41B 'httpx':18B,24B 'instanc':54B,63B 'json':28B,46B 'lead':73B 'load':43B,57B 'match':68B 'mode':37B 'multi':45B 'object':36B 'oj':19B,32B,40B 'packag':20B 'remot':75B 'respons':29B,50B 'rubi':21B,25B,58B 'rubygem':22B 'set':61B 'variabl':64B","search_c":"'1.9.0':198C '1.9.1':201C 'absent':108C 'affect':196C 'alloc':136C 'alreadi':139C 'already-load':138C 'applic':169C 'attack':160C 'back':112C 'bodi':85C 'c':157C 'call':117C 'caus':192C 'chain':187C 'class':142C,153C 'classnam':144C 'code':194C 'control':162C,176C 'decod':110C 'default':126C 'deleg':93C 'document':134C 'execut':195C 'fall':111C 'fetch':170C 'fix':199C 'gadget':186C 'gem':81C,101C 'httpx':79C,90C,197C 'httpx.get':172C 'influenc':165C 'instanc':148C 'instanti':178C 'issu':189C 'json':83C,92C,106C,114C,174C 'json.decode':96C 'layer':89C 'load':103C,115C,140C 'match':185C 'mode':123C,129C 'modul':155C 'multi':105C 'name':158C 'o':143C 'object':128C,177C 'oj':100C 'oj.load':118C,125C 'option':124C 'pars':82C 'potenti':191C 'process':182C 'refer':156C 'remot':193C 'resolv':151C 'respons':84C,91C,133C 'response.to':119C 'rubi':80C,141C 'set':146C 'therefor':175C 'transcod':88C,95C 'url':167C,173C 'variabl':149C 'victim':181C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T11:16:45+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","cvss_by":"reefs@jfrog.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-129784","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129784","severity":null,"published_at":"2026-11-16T11:16:45+00:00","modified_at":"2026-11-16T11:16:45+00:00","first_seen_at":"2026-11-16T11:41:50+00:00","fetched_at":"2026-11-16T11:41:50+00:00","note":null}],"documents":[{"id":169247,"url":"https://github.com/HoneyryderChuck/httpx/commit/eeb785d3250eee9379494fb62c37c315a31e327c","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":169248,"url":"https://github.com/HoneyryderChuck/httpx/releases/tag/v1.9.1","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}