Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-110222 Overview
CVE-2026-110222 is a Server-Side Request Forgery (SSRF) vulnerability in the Razorpay IFSC Ruby gem through version 2.0.62. The flaw resides in IFSC.find and IFSC#get, which pass user-supplied IFSC codes to URI.join without validating the resulting host. Attackers can submit network-path references or absolute URIs that URI.join resolves to an attacker-chosen host. The gem then issues GET requests to that host and returns parsed response fields to the caller. This behavior enables adversaries to pivot requests to internal services or arbitrary external endpoints, exposing cloud metadata APIs and internal infrastructure.
Critical Impact
Unauthenticated attackers can redirect outbound API requests from affected applications to internal or attacker-controlled hosts, enabling reconnaissance of internal networks and retrieval of sensitive response data.
Affected Products
- Razorpay IFSC Ruby gem versions through 2.0.62
- Ruby applications consuming the ifsc gem from RubyGems
- Downstream services that expose IFSC.find or IFSC#get to untrusted input
Discovery Timeline
- 2026-10-13 - CVE-2026-110222 published to the National Vulnerability Database
- 2026-10-14 - Last updated in NVD database
Technical Details for CVE-2026-110222
Vulnerability Analysis
The vulnerability is categorized under CWE-918: Server-Side Request Forgery. The Razorpay IFSC gem resolves bank branch metadata by constructing a URL from a base endpoint and the user-provided IFSC code. The gem relies on Ruby's URI.join to assemble the final request URL, but URI.join treats inputs that begin with a scheme or protocol-relative prefix (//host) as absolute references. When such an input is passed, URI.join discards the base host and adopts the attacker-supplied authority. The gem then issues an HTTP GET to that destination and parses the response, returning selected fields to the caller.
Root Cause
The root cause is the absence of input validation on the IFSC code before it reaches URI.join in src/ruby/ifsc.rb lines 53-58. The code assumes the input is an opaque path segment, but Ruby's URI resolution semantics permit scheme and authority overrides. Without a strict allowlist pattern (for example, an alphanumeric IFSC regex), the function accepts crafted strings that redirect the outbound request.
Attack Vector
An attacker who can supply input to any application endpoint that calls IFSC.find or IFSC#get can trigger an outbound request to a chosen host. Payloads such as //internal.service.local/path or http://169.254.169.254/latest/meta-data/ cause URI.join to produce a URL pointing at the attacker's target. The gem returns parsed response fields, which can expose cloud instance metadata, internal admin interfaces, or data from otherwise unreachable services. See the VulnCheck Advisory for Razorpay IFSC and the GitHub IFSC Ruby Code Section for the vulnerable code path.
Detection Methods for CVE-2026-110222
Indicators of Compromise
- Outbound HTTP GET requests from application servers to cloud metadata endpoints such as 169.254.169.254 or metadata.google.internal.
- Application logs containing IFSC code parameters with characters outside the expected [A-Z0-9] set, including slashes, colons, or protocol prefixes.
- Unexpected egress connections from Ruby worker processes to internal RFC1918 ranges that were never previously contacted.
Detection Strategies
- Instrument the IFSC.find and IFSC#get call sites to log the raw input value and the resolved request URL for correlation.
- Deploy egress proxies that enforce an allowlist of destination hosts for IFSC lookups and alert on any deviation.
- Review web application firewall logs for inbound parameters matching SSRF patterns such as //, http://, file://, or encoded equivalents in IFSC fields.
Monitoring Recommendations
- Monitor DNS resolution requests originating from application hosts for metadata service hostnames and internal domains.
- Baseline outbound traffic from Ruby application tiers and alert on new destinations introduced after deployment.
- Correlate authentication logs with outbound SSRF indicators to identify abuse of unauthenticated endpoints that expose the vulnerable gem.
How to Mitigate CVE-2026-110222
Immediate Actions Required
- Audit all application code paths that call IFSC.find or IFSC#get and confirm whether user-controlled input reaches these methods.
- Enforce strict input validation that rejects any IFSC code not matching the standard 11-character alphanumeric format before invocation.
- Restrict outbound network egress from application servers to only the hostnames required for IFSC lookups.
Patch Information
At the time of publication, the NVD entry does not list a fixed version. Monitor the GitHub IFSC Repository and the RubyGems IFSC Gem Page for a release above 2.0.62 that remediates the SSRF. Review the HackMD Security Review for additional remediation context.
Workarounds
- Wrap gem invocations in a validator that applies the regex \A[A-Z]{4}0[A-Z0-9]{6}\z and raises on mismatch.
- Replace URI.join usage in forked copies of the gem with explicit string interpolation against a fixed base URL.
- Route gem HTTP traffic through an egress proxy that permits only the official Razorpay IFSC API host.
# Configuration example
# Validate IFSC input in Ruby before invoking the gem
# config/initializers/ifsc_guard.rb
IFSC_PATTERN = /\A[A-Z]{4}0[A-Z0-9]{6}\z/.freeze
def safe_ifsc_lookup(code)
raise ArgumentError, "invalid IFSC" unless code.is_a?(String) && code.match?(IFSC_PATTERN)
IFSC.find(code)
end
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

