cvelo
P2 · HighCVSS 8.5EPSS 0.7%

Insecure deserializaiton in the httpx Ruby gem via unsafe Oj object-mode

  • CVE-2026-129784
  • GHSA-jgqw-w3x2-9h6q
  • EUVD-2026-126245

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.

Text from the CVE.org record.

Recommendation

  • os85 httpx

    • If you run 1.9.xupdate to 1.9.1 or laterPatch update: breaking changes are unlikely

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • os85 httpx

    Affected versionsFixed in
    from 1.9.0 to before 1.9.11.9.1

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.