httpx is vulnerable to Remote Code Execution via Oj Object-Mode JSON Deserialization
## Summary httpx is vulnerable to Remote Code Execution via Oj Object-Mode JSON Deserialization ## Component httpx (gitlab.com/os85/httpx) ## Affected versions 1.9.0 ## Description httpx parses JSON response bodies through its transcoder layer. When the oj gem is loaded and multi_json is absent from the bundle, HTTPX::Response#json decodes the body with Oj.load(response.to_s) and no mode option (lib/httpx/transcoder/json.rb), so Oj runs in its shipped default :object mode. In that mode a JSON document can instantiate any already-loaded Ruby class and set its instance variables, which turns a fetched response body into attacker-controlled Ruby objects. An attacker who can influence the URL an
…