Savon::Model evaluates WSDL operation names as Ruby source
Published 31 Jul 2026 · Updated 31 Jul 2026
Is your project on an affected savon?
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.9.8 <2.17.2
- Fixed in
- 2.17.2
bundle update --conservative savon # Gemfile: '>= 2.17.2'Details
Impact
Savon::Model generated SOAP operation methods by interpolating operation names into Ruby source passed to module_eval. An attacker who can control the operation names of a WSDL, can inject Ruby code that executes in the application process. This affects only the .all_operations class method provided by Savon::Model to automatically register all operations provided by the WSDL. Configuring Savon::Model with trusted operation names via .operations is safe.
Patches
Patched in Savon 2.17.2.
Users should upgrade to 2.17.2 or later.
Workarounds
Avoid .all_operations for untrusted WSDL documents. Use .operations with trusted operation names instead.
Is GHSA-mx5j-mp4f-g8jg 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 savon, and gives you the command that fixes it.
References
- Linkgithub.com/savonrb/savon/security/advisories/GHSA-mx5j-mp4f-g8jg
- Linkgithub.com/savonrb/savon/commit/8f22eb543e7436f6247172c9be47e22792d375e9
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/savon/CVE-2026-53510.yml
- Packagegithub.com/savonrb/savon
- Linkgithub.com/savonrb/savon/releases/tag/v2.17.2
- Linkwww.cve.org/CVERecord/SearchResults?query=CVE-2026-53510
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.