CVE-2026-129784 (GCVE-0-2026-129784)
Vulnerability from cvelistv5 – Published: 2026-11-16 10:53 – Updated: 2026-11-16 10:53
VLAI
EPSS
VEX
Title
Insecure deserializaiton in the httpx Ruby gem via unsafe Oj object-mode
Summary
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.
Severity
8.5 (High)
CWE
- CWE-502 - Deserialization of Untrusted Data
Assigner
References
7 references
| URL | Tags |
|---|---|
| https://github.com/HoneyryderChuck/httpx | product |
| https://rubygems.org/gems/httpx | product |
| https://github.com/HoneyryderChuck/httpx/commit/e… | patch |
| https://github.com/HoneyryderChuck/httpx/releases… | patch |
| https://github.com/ohler55/oj/blob/develop/pages/… | technical-description |
| https://gitlab.com/os85/httpx | product |
| https://gitlab.com/os85/httpx/-/commit/eeb785d325… | patch |
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://rubygems.org/gems/httpx",
"defaultStatus": "unaffected",
"packageName": "httpx",
"product": "httpx",
"programFiles": [
"lib/httpx/transcoder/json.rb",
"lib/httpx/response.rb"
],
"repo": "https://gitlab.com/os85/httpx",
"vendor": "os85",
"versions": [
{
"lessThan": "1.9.1",
"status": "affected",
"version": "1.9.0",
"versionType": "semver"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAffects 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.\u003c/p\u003e"
}
],
"value": "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."
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Natan Nehorai of the JFrog Vulnerability Research team"
},
{
"lang": "en",
"type": "coordinator",
"value": "JFrog Security Research"
}
],
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe httpx Ruby gem parses JSON response bodies through its transcoder layer. \u003ccode\u003eHTTPX::Response#json\u003c/code\u003e delegates to \u003ccode\u003eTranscoder::JSON.decode\u003c/code\u003e, and when the oj gem is loaded and multi_json is absent, the decoder falls back to \u003ccode\u003ejson_load\u003c/code\u003e, which calls \u003ccode\u003eOj.load(response.to_s)\u003c/code\u003e with no mode option. \u003ccode\u003eOj.load\u003c/code\u003e defaults to \u003ccode\u003e:object\u003c/code\u003e mode, in which a response document can allocate any already-loaded Ruby class (\u003ccode\u003e\"^o\":\"ClassName\"\u003c/code\u003e) and set its instance variables, or resolve a class or module reference (\u003ccode\u003e\"^c\":\"Name\"\u003c/code\u003e). An attacker who controls, or can influence, the URL an application fetches with \u003ccode\u003eHTTPX.get(url).json\u003c/code\u003e 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.\u003c/p\u003e"
}
],
"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."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 8.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "CHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H",
"version": "3.1"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "An application loads oj before httpx, does not have multi_json in its bundle, does not pin a safe process-wide Oj.default_options, the Ruby process contains a valid gadget chain, and calls response.json on a response from an attacker-influenced URL."
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-502",
"description": "CWE-502: Deserialization of Untrusted Data",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-16T10:53:51.915Z",
"orgId": "48a46f29-ae42-4e1d-90dd-c1676c1e5e6d",
"shortName": "JFROG"
},
"references": [
{
"name": "httpx repository",
"tags": [
"product"
],
"url": "https://github.com/HoneyryderChuck/httpx"
},
{
"name": "httpx on RubyGems",
"tags": [
"product"
],
"url": "https://rubygems.org/gems/httpx"
},
{
"name": "Fix commit: json: fix oj integration to avoid RCE mode",
"tags": [
"patch"
],
"url": "https://github.com/HoneyryderChuck/httpx/commit/eeb785d3250eee9379494fb62c37c315a31e327c"
},
{
"name": "httpx v1.9.1 (fixed version)",
"tags": [
"patch"
],
"url": "https://github.com/HoneyryderChuck/httpx/releases/tag/v1.9.1"
},
{
"name": "Oj security documentation: :object mode and safe loading",
"tags": [
"technical-description"
],
"url": "https://github.com/ohler55/oj/blob/develop/pages/Security.md"
},
{
"tags": [
"product"
],
"url": "https://gitlab.com/os85/httpx"
},
{
"tags": [
"patch"
],
"url": "https://gitlab.com/os85/httpx/-/commit/eeb785d3250eee9379494fb62c37c315a31e327c"
}
],
"solutions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eUpgrade to httpx 1.9.1, which calls \u003ccode\u003eOj.load\u003c/code\u003e with an explicit \u003ccode\u003e{ mode: :strict }\u003c/code\u003e default. If upgrading is not possible, pass a safe mode at the call site (\u003ccode\u003eresponse.json(mode: :strict)\u003c/code\u003e), or set a safe process-wide default such as \u003ccode\u003eOj.default_options = { mode: :strict }\u003c/code\u003e (or \u003ccode\u003e:rails\u003c/code\u003e) before any untrusted JSON is parsed. Do not rely on Oj\u0027s shipped \u003ccode\u003e:object\u003c/code\u003e default for data that arrived over the network.\u003c/p\u003e"
}
],
"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\u0027s shipped :object default for data that arrived over the network."
}
],
"source": {
"discovery": "EXTERNAL"
},
"timeline": [
{
"lang": "en",
"time": "2026-11-04T00:00:00.000Z",
"value": "JFrog reports the issue to the httpx maintainer via email."
},
{
"lang": "en",
"time": "2026-11-13T00:00:00.000Z",
"value": "Maintainer commits the fix (eeb785d) changing json_load to use Oj :strict mode; released as httpx v1.9.1."
}
],
"title": "Insecure deserializaiton in the httpx Ruby gem via unsafe Oj object-mode",
"x_generator": {
"engine": "Vulnogram 1.0.5"
}
}
},
"cveMetadata": {
"assignerOrgId": "48a46f29-ae42-4e1d-90dd-c1676c1e5e6d",
"assignerShortName": "JFROG",
"cveId": "CVE-2026-129784",
"datePublished": "2026-11-16T10:53:51.915Z",
"dateReserved": "2026-11-16T10:52:48.547Z",
"dateUpdated": "2026-11-16T10:53:51.915Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"collectionURL": "https://rubygems.org/gems/httpx",
"defaultStatus": "unaffected",
"packageName": "httpx",
"product": "httpx",
"programFiles": [
"lib/httpx/transcoder/json.rb",
"lib/httpx/response.rb"
],
"repo": "https://gitlab.com/os85/httpx",
"vendor": "os85",
"versions": [
{
"lessThan": "1.9.1",
"status": "affected",
"version": "1.9.0",
"versionType": "semver"
}
]
}
],
"source": "reefs@jfrog.com"
}
],
"cveTags": [],
"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."
}
],
"id": "CVE-2026-129784",
"lastModified": "2026-11-16T11:16:45.537",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 8.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "CHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 1.8,
"impactScore": 6.0,
"source": "reefs@jfrog.com",
"type": "Secondary"
}
]
},
"published": "2026-11-16T11:16:45.537",
"references": [
{
"source": "reefs@jfrog.com",
"url": "https://github.com/HoneyryderChuck/httpx"
},
{
"source": "reefs@jfrog.com",
"url": "https://github.com/HoneyryderChuck/httpx/commit/eeb785d3250eee9379494fb62c37c315a31e327c"
},
{
"source": "reefs@jfrog.com",
"url": "https://github.com/HoneyryderChuck/httpx/releases/tag/v1.9.1"
},
{
"source": "reefs@jfrog.com",
"url": "https://github.com/ohler55/oj/blob/develop/pages/Security.md"
},
{
"source": "reefs@jfrog.com",
"url": "https://gitlab.com/os85/httpx"
},
{
"source": "reefs@jfrog.com",
"url": "https://gitlab.com/os85/httpx/-/commit/eeb785d3250eee9379494fb62c37c315a31e327c"
},
{
"source": "reefs@jfrog.com",
"url": "https://rubygems.org/gems/httpx"
}
],
"sourceIdentifier": "reefs@jfrog.com",
"vulnStatus": "Received",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-502"
}
],
"source": "reefs@jfrog.com",
"type": "Primary"
}
]
}
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…