HTTParty
CVE-2025-68696
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify user input field
-
ExploitInject internal/metadata URL
-
ExecutionHTTParty makes server-side request
-
ImpactExtract leaked credentials/data from response
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the Ruby application to accept user-controlled input (URL parameters, POST body fields, API request payloads, webhook URLs) that is passed directly or indirectly to HTTParty request methods (HTTParty.get, HTTParty.post, HTTParty.put, etc.) without strict URL validation or allowlisting. Applications using HTTParty solely with hardcoded or administrator-configured URLs are NOT vulnerable. The vulnerability is exploitable when the application constructs requests dynamically based on user input, such as: url = params[:callback_url]; HTTParty.get(url). Default HTTParty configurations in versions ≤0.23.2 are vulnerable-no special feature enablement required. Limiting factors that reduce real-world risk: many modern cloud environments now enforce IMDSv2 requiring session tokens (mitigating metadata service SSRF), applications behind strict egress firewalls cannot reach internal targets, and some frameworks (Rails with strong parameters) may filter URL inputs before they reach HTTParty. However, the CVSS vector AV:N/AC:L/PR:N/UI:N indicates no authentication or complex preconditions are inherently required at the protocol level-exploitability depends entirely on whether the specific application passes user input to HTTParty. |
| Impact | Real-world risk is HIGH for applications using HTTParty to process user-supplied URLs, but actual exploitability depends entirely on application implementation. The CVSS 4.0 score of 7.8 with AV:N/AC:L/PR:N/UI:N indicates remote unauthenticated exploitation with low complexity, which appears severe. However, the Exploit maturity indicator E:P (Proof-of-concept) confirms public exploit availability, elevating urgency. The vulnerability's impact is amplified in cloud environments where SSRF can access instance metadata services (AWS IMDSv1 at 169.254.169.254) to steal IAM credentials, or probe internal Kubernetes/Docker APIs. The CVSS vector shows VC:H (high confidentiality impact) reflecting API key leakage risk, and VI:L (low integrity impact) suggesting limited ability to modify data directly, though internal API calls could trigger state changes. Scope is unchanged (SC:N/SI:N/SA:N), meaning impact remains within the vulnerable component's security context. Critical gap in provided data: EPSS probability score is missing, making it impossible to quantify statistical likelihood of mass exploitation. KEV status not provided, suggesting no confirmed widespread campaigns yet. Priority assessment: IMMEDIATE patching required for any internet-facing applications using HTTParty with user-controllable request parameters; MEDIUM priority for internal-only applications with strict network segmentation. The combination of public exploit code and network attack vector makes this a weaponizable vulnerability despite relatively narrow exploitation conditions. |
| Exploit ScenarioDerived | An attacker identifies a Ruby on Rails application using HTTParty to fetch external resources based on user-provided URLs, such as a webhook validator or RSS feed aggregator feature. The attacker submits a malicious URL pointing to http://169.254.169.254/latest/meta-data/iam/security-credentials/ (AWS instance metadata service). The vulnerable HTTParty library makes the request from the server's context, retrieving temporary AWS IAM credentials which are returned to the attacker in the application response or logged where the attacker has access. With stolen credentials, the attacker escalates to full AWS account compromise, launching EC2 instances for cryptomining or exfiltrating data from S3 buckets. Alternatively, the attacker targets internal microservices at http://internal-admin-api:8080/users to enumerate internal user accounts or trigger privileged operations not exposed to external networks. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Server-Side Request Forgery (SSRF) in HTTParty 0.23.2 and earlier enables remote unauthenticated attackers to force the application to make arbitrary HTTP requests to internal network resources and third-party services, potentially leaking API keys and credentials embedded in outbound requests or accessing internal-only endpoints. Publicly available exploit code exists (GitHub Security Advisory GHSA-hm5p-x4rq-38w4), and the CVSS E:P modifier confirms proof-of-concept exploitation. Vendor-released patch is available via commit 0529bcd, though a tagged release version is not confirmed from provided data. EPSS data not provided, but SSRF vulnerabilities targeting API libraries typically see exploitation within weeks of public disclosure due to their prevalence in cloud-native environments.
RemediationAI
Apply the vendor-released patch by upgrading to a version containing commit 0529bcd6309c9fd9bfdd50ae211843b10054c240 (https://github.com/jnunemaker/httparty/commit/0529bcd6309c9fd9bfdd50ae211843b10054c240). The specific released gem version number incorporating this fix is not confirmed from available data-verify the latest HTTParty gem version on RubyGems.org and review its changelog to confirm inclusion of commit 0529bcd before upgrading. If immediate patching is not feasible, implement strict URL validation as a compensating control: use allowlists for permitted destination domains, reject RFC1918 private IP addresses (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), block link-local addresses (169.254.0.0/16), and disallow localhost/127.0.0.1 references in any user-supplied URL parameters passed to HTTParty methods. Note that URL parsing can be bypassed via encoding tricks (octal IPs, IPv6 notation, DNS rebinding), so allowlisting is more reliable than denylisting. Network-level mitigation: configure egress firewall rules to prevent application servers from accessing cloud metadata endpoints (169.254.169.254) and internal network ranges, though this may break legitimate internal API calls and complicates microservice architectures. For applications that must accept arbitrary URLs, consider proxying all HTTParty requests through a dedicated egress gateway with deep packet inspection and URL rewriting capabilities, accepting the performance overhead and operational complexity this introduces.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in rubygems
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
HTTParty is a Ruby HTTP client library widely used for consuming REST APIs and making HTTP requests in Ruby applications. CWE-918 (Server-Side Request Forgery) occurs when an application accepts user-supplied URLs or URL components without proper validation, allowing attackers to manipulate the destination of outbound HTTP requests. In API client libraries like HTTParty, SSRF typically manifests when applications pass user-controlled input directly into HTTParty request methods (e.g., HTTParty.get, HTTParty.post) without sanitizing the target URL. This enables attackers to redirect requests to internal IP ranges (169.254.169.254 for cloud metadata services, RFC1918 private networks), localhost services, or arbitrary external domains. The vulnerability affects all versions through 0.23.2 per the CPE string cpe:2.3:a:jnunemaker:httparty:*:*:*:*:*:*:*:*, indicating a library-level flaw rather than application-specific misconfiguration. The CVSS vector's VC:H (High Confidentiality impact) and VI:L (Low Integrity impact) align with typical SSRF impact profiles where data exfiltration is the primary risk.
Know when Httparty gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
httparty is an API tool. In versions 0.23.2 and prior, httparty is vulnerable to SSRF. This issue can pose a risk of leaking API keys, and it can also allow third parties to issue requests to internal servers. This issue has been patched via commit 0529bcd.
Executive ViewAI
HTTParty versions 0.23.2 and earlier contain an unauthenticated Server-Side Request Forgery vulnerability that allows attackers to force affected applications to make arbitrary HTTP requests to internal resources, potentially exposing API keys, credentials, and access to restricted endpoints. Any organization using HTTParty in production environments faces immediate risk of credential compromise and lateral movement into internal systems. This requires urgent inventory and patching to prevent data exfiltration.
Apply vendor patch. If patching is delayed: implement network-level egress filtering to restrict outbound HTTP connections to whitelisted internal IP ranges and approved external services; deploy WAF rules to detect and block requests with malformed or suspicious headers indicative of SSRF attempts; enforce credential rotation for all API keys and service account credentials; monitor outbound HTTP traffic for anomalous destination IPs or hostnames.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Affected Products (CPE)CVE.org
The httparty gem 0.9.0 and earlier for Ruby does not properly restrict casts of string values, which might allow remote
httparty before 0.21.0 is vulnerable to an assumed-immutable web parameter vulnerability. Rated medium severity (CVSS 5.
NVD
CVE.org
EPSS
GitHub
Exploit-DB