{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-129784", "assignerOrgId": "48a46f29-ae42-4e1d-90dd-c1676c1e5e6d", "state": "PUBLISHED", "assignerShortName": "JFROG", "dateReserved": "2026-11-16T10:52:48.547Z", "datePublished": "2026-11-16T10:53:51.915Z", "dateUpdated": "2026-11-16T18:13:11.328Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "48a46f29-ae42-4e1d-90dd-c1676c1e5e6d", "shortName": "JFROG", "dateUpdated": "2026-11-16T10:53:51.915Z" }, "title": "Insecure deserializaiton in the httpx Ruby gem via unsafe Oj object-mode", "problemTypes": [ { "descriptions": [ { "lang": "en", "cweId": "CWE-502", "description": "CWE-502: Deserialization of Untrusted Data", "type": "CWE" } ] } ], "affected": [ { "vendor": "os85", "product": "httpx", "collectionURL": "https://rubygems.org/gems/httpx", "packageName": "httpx", "repo": "https://gitlab.com/os85/httpx", "programFiles": [ "lib/httpx/transcoder/json.rb", "lib/httpx/response.rb" ], "versions": [ { "status": "affected", "version": "1.9.0", "lessThan": "1.9.1", "versionType": "semver" } ], "defaultStatus": "unaffected" } ], "descriptions": [ { "lang": "en", "value": "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.", "supportingMedia": [ { "type": "text/html", "base64": false, "value": "
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.
Affects httpx 1.9.0 only when the oj gem is loaded (and loaded before httpx), multi_json is absent from the bundle, and the process has not pinned a safe Oj.default_options. Reaching code execution additionally requires a gadget chain and an attacker-influenced URL passed to response.json. Applications that keep multi_json, pin a safe Oj mode, or call response.json with an explicit safe mode are not exploitable.
" } ] } ], "solutions": [ { "lang": "en", "value": "Upgrade to httpx 1.9.1, which calls Oj.load with an explicit { mode: :strict } default. If upgrading is not possible, pass a safe mode at the call site (response.json(mode: :strict)), or set a safe process-wide default such as Oj.default_options = { mode: :strict } (or :rails) before any untrusted JSON is parsed. Do not rely on Oj's shipped :object default for data that arrived over the network.", "supportingMedia": [ { "type": "text/html", "base64": false, "value": "Upgrade to httpx 1.9.1, which calls Oj.load with an explicit { mode: :strict } default. If upgrading is not possible, pass a safe mode at the call site (response.json(mode: :strict)), or set a safe process-wide default such as Oj.default_options = { mode: :strict } (or :rails) before any untrusted JSON is parsed. Do not rely on Oj's shipped :object default for data that arrived over the network.