HTTParty does not restrict casts of string values
Published 24 Oct 2017 · Updated 29 Nov 2024
Is your project on an affected httparty?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <0.10.0
- Fixed in
- 0.10.0
bundle update --conservative httparty # Gemfile: '>= 0.10.0'Details
The httparty gem 0.9.0 and earlier for Ruby does not properly restrict casts of string values, which might allow remote attackers to conduct object-injection attacks and execute arbitrary code, or cause a denial of service (memory and CPU consumption) by leveraging Action Pack support for YAML type conversion, a similar vulnerability to CVE-2013-0156.
Is GHSA-mgx3-27hr-mfgp in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected httparty, and gives you the command that fixes it.
More advisories for httparty
- HighCVE-2025-68696httparty Has Potential SSRF Vulnerability That Leads to API Key Leakage · 23 Dec 2025
- MediumCVE-2024-22049httparty has multipart/form-data request tampering vulnerability · 3 Jan 2023
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2013-1801
- Linkgithub.com/jnunemaker/httparty/commit/53a812426dd32108d6cba4272b493aa03bc8c031
- Linkbugzilla.redhat.com/show_bug.cgi?id=917229
- Packagegithub.com/jnunemaker/httparty
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/httparty/CVE-2013-1801.yml
- Linksupport.cloud.engineyard.com/entries/22915701-january-14-2013-security-vulnerabilities-httparty-extlib-crack-nori-update-these-gems-immediately
- Linkweb.archive.org/web/20200229101716/http://www.securityfocus.com/bid/58260
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.