Skip to main content

HTTParty CVE-2025-68696

HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2025-12-23 security-advisories@github.com
7.8
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify user input field
  2. Exploit
    Inject internal/metadata URL
  3. Execution
    HTTParty makes server-side request
  4. Impact
    Extract 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

rubygems httparty fix: 0.24.0

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

Vendor (github) PRIMARY 7.8 HIGH
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
Red Hat 9.3 HIGH

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 78% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Affected Products (CPE)CVE.org

cpe:2.3:a:jnunemaker:httparty:*:*:*:*:*:*:*:*

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy