GHSA-p8jg-8p9f-pgmr
HighSummary
The faraday-http-cache library stores cached responses in JSON format by default and reads them back using JSON.load, which honors the json_class key and calls json_create on the named class. Response headers are stored verbatim in the cache entry, so a malicious origin server can return a response with a json_class key leading to unsafe deserialization.
Risk Assessment
An attacker could exploit this vulnerability to execute arbitrary code or instantiate dangerous objects within the application process, potentially leading to server compromise or data leakage.
Recommendation
Recommend avoiding the default JSON module for deserializing responses or ensuring the cache is not shared with untrusted origins. Also validate and restrict allowed classes during deserialization.
Other vulnerabilities in faraday-http-cache
Original NVD description (English source)
faraday-http-cache stores cached responses with the JSON module by default and reads them back with JSON.load, which honours the json_class key and calls json_create on the named class. Response headers are stored verbatim inside the cache entry, so an origin server that returns a json_class respons

