faraday-http-cache is vulnerable to Insecure Deserialization
81
High Risk
Faraday::HttpCache deserializes cached entries with JSON.load, which honors create_additions and instantiates whatever Ruby class a json_class key names inside the cached data. Cache entries store response headers verbatim, so a header named json_class from the origin plants a class name that gets instantiated the next time the entry is read, and a class defining a matching json_create method then runs on that untrusted data. The fix reads entries with JSON.parse instead, which only ever builds plain hashes and never instantiates classes.
You are affected if you are using a version that falls within the vulnerable range and you cache responses from an origin whose response headers are not fully trusted.
faraday-http-cache is vulnerable to Insecure Deserialization in versions 2.0.0 - 2.7.0.
Upgrade the faraday-http-cache library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.