Skip to main content

Addressable CVE-2026-141538

| EUVDEUVD-2026-140767 MEDIUM
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-12-01 GitHub_M GHSA-qrq6-rcpx-pmm6
4.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Supply crafted userinfo value to app
  2. Delivery
    App assigns value via URI#user=/#userinfo=
  3. Exploit
    Host validation passes on URI object
  4. Execution
    App serializes with #to_s, not normalize
  5. Persist
    Request sent to attacker-controlled host
  6. Impact
    Trusted headers or token disclosed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
Exploitation Conditions

Exploitation requires a specific application pattern, not merely network access: the consuming Ruby application must (1) place an attacker-influenced value into the userinfo of an Addressable::URI built for a trusted host via #user=, #password=, #userinfo=, the matching URI.new/authority= options; (2) validate trust by checking the URI object's #host or #origin (which still report the intended host); and (3) serialize with #to_s and hand the string to an HTTP client. Limiting factors: attack complexity is high (AC:H) because this exact build-validate-serialize sequence must be present; on version 2.9.2 the injected text must follow a colon (e.g. 'u:x@evil.example/') because #userinfo= there ignores a value without a colon; and the flaw is fully avoided if the application uses uri.normalize.to_s, pct-encodes userinfo before assignment, or re-parses the final string's host. The vendor states upgrading to 2.10.0 (which raises InvalidURIError for these delimiters) is the fix.

Impact

This is a genuine but conditional, moderate-severity issue rather than a top-tier emergency. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N, base 4.8) captures it well: network-reachable and requiring no authentication to the vulnerable application, but with high attack complexity because exploitation depends on the application following a specific, non-universal coding pattern. The vuln.today Decision label is this_month, consistent with a real-but-not-urgent priority. No EPSS score, no CISA KEV listing, and no proof-of-concept flag were provided, so there is no evidence of active exploitation or automated weaponization - the signals are internally consistent (moderate CVSS, this_month decision, no exploitation signals) rather than conflicting. The AC:H rating is explicitly supported by the GHSA advisory, which states the attacker needs the application to build URIs by placing untrusted input into userinfo, validate the object's host/origin, and then send the serialized string - so this is not a flaw in Addressable alone but in how a consuming application uses it. Impact is bounded to low confidentiality and low integrity (leakage of headers/body such as an API token to an attacker-chosen host, and requests misdirected there); there is no availability impact. Treat as a dependency-bump item to schedule this month, not a drop-everything patch.

Exploit ScenarioDerived

A Ruby application takes an untrusted value (e.g. a username or token component), assigns it to Addressable::URI#user=, #password=, or #userinfo= on a URI whose host is a trusted internal API, confirms the object's #host or #origin still points at the trusted service, then passes #to_s to an HTTP client. Because the setters store '/', '?', or '#' without encoding, an input like 'alice@evil.example/' serializes to 'https://alice@evil.example/@api.example.com/…', which Addressable and Ruby's URI both read as the host evil.example, so the request - including any API token in its headers or body - is sent to the attacker's host. No public exploit identified at time of analysis; the mechanism is documented in the GHSA advisory but exploitation requires the application to construct URIs this way (AC:H).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Dec 02, 2026

Addressable, the Ruby URI library, fails to reject or percent-encode host-changing delimiters in the userinfo component: from 2.0.0 through 2.9.2, #user=, #password=, #userinfo=, #authority= and the matching URI.new options store values containing '/', '?', '#', '[', ']' or '\' raw, so #to_s serializes a URI whose host differs from the one #host and #origin report. An application that assigns attacker-influenced data into the userinfo of a URI for a trusted host, authorizes the request by checking #host or #origin, and then hands the serialized string to an HTTP client can disclose headers or request bodies - such as an API token - to an attacker-chosen host. The flaw is rated CVSS 4.8 with high attack complexity (AC:H) because that build-validate-serialize pattern must be present, no public exploit has been identified at time of analysis, and the vendor has released a fix in 2.10.0.

RemediationAI

Upgrade the Addressable gem to version 2.10.0, the vendor-released fix (commit https://github.com/sporkmonger/addressable/commit/651722f370f679ce4cdf64ed1d2c9527d5e6958b, release https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0); from that version, #user=, #password=, #userinfo=, #authority=, URI.new and URI.parse raise Addressable::URI::InvalidURIError for '/', '?', '#', '[', ']' or '\' in the user or password, and for ':' in the user. Code that previously assigned such characters - for example a password beginning with '#' or a user containing a colon - must now percent-encode the value first, so expect and test for these new exceptions. Where upgrading is not immediately possible, three vendor-documented workarounds close the gap: serialize with uri.normalize.to_s instead of uri.to_s, which encodes the delimiters; percent-encode userinfo values before assignment using Addressable::URI.encode_component(value, Addressable::URI::CharacterClasses::UNRESERVED); and validate the host of the final string with Addressable::URI.parse(uri.to_s).host rather than the host of the object. Each workaround must be applied at every call site that builds a URI from untrusted input, since a single missed path leaves the disclosure open.

Affected VersionsENISA

addressable 2.0.0, < 2.10.0

Affected Packages

rubygems addressable fix: 2.10.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

Addressable is an alternative implementation of Ruby's stdlib URI class, and this is a component-injection problem (CWE-74) that additionally reflects an interpretation conflict (CWE-436) between the library's object model and the parsers that later consume its output. The URI object itself remains self-consistent: #host and #origin report the host the application set, because the component is stored exactly as assigned. The mismatch appears only at serialization time, where #to_s joins components with their delimiters without encoding them; Addressable and Ruby's URI both then read the text after the injected delimiter as the authority, so 'alice@evil.example/' as a user yields 'https://alice@evil.example/@api.example.com/…'. Variants behave differently: a '[' or ']' makes the serialized URI fail to parse, a ':' in the user shifts the remainder into the password, and a '\' terminates the userinfo for browsers, which treat it as '/'. #normalize does encode these characters correctly, which is why normalize.to_s is an effective workaround. On 2.9.2, #userinfo= ignores a value without a colon, so the injected text must follow one (e.g. 'u:x@evil.example/'). The trigger requires the consuming application to build URIs this way; it is not reachable through network input alone.

Know when Addressable 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_M) PRIMARY 4.8 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 4.8 MEDIUM

AC:H because exploitation depends on the application's specific build-validate-serialize pattern; PR:N/UI:N as untrusted input suffices; C:L/I:L for header/token leakage and request misdirection, A:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 23:19 EUVD
CVE Published
Dec 01, 2026 - 21:44 cve.org
MEDIUM 4.8

DescriptionCVE.org

Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.0.0 until 2.10.0, Addressable::URI#user=, #password=, #userinfo=, and matching Addressable::URI.new options store userinfo values without rejecting or encoding host-changing delimiters. Values containing /, ?, or

can end userinfo early when Addressable::URI#to_s serializes the URI. An application that validates the URI object but sends the serialized string can disclose headers or request bodies to an attacker-controlled host. This issue is fixed in version 2.10.0.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
High
very widely used Ruby URI gem, common direct and transitive dependency
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
4 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-35611 HIGH
7.5 Apr 07

Regular expression denial of service (ReDoS) in the Addressable Ruby library versions 2.3.0 through 2.8.x allows unauthe

CVE-2021-32740 HIGH
7.5 Jul 06

Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. Rated hi

CVE-2026-141528 MEDIUM
5.9 Dec 01

Regular expression denial of service in the Addressable Ruby gem (2.3.0 through 2.9.2) allows crafted URIs to force exce

CVE-2026-141527 MEDIUM
5.9 Dec 01

Polynomial backtracking in Addressable's URI template matching lets a crafted URI drive Template#match or Template#extra

CVE-2026-141526 MEDIUM
5.9 Dec 01

Polynomial-time regular expression backtracking in the Addressable Ruby gem's URI template matcher (Template#match and T

CVE-2026-141525 MEDIUM
5.9 Dec 01

Polynomial-time regular-expression backtracking in the Addressable Ruby gem (2.9.1 through 2.9.2) lets unauthenticated r

CVE-2026-141539 MEDIUM
4.8 Dec 01

Hostname filtering bypass in the Addressable Ruby URI library (versions 2.2.5 through 2.9.2, fixed in 2.10.0) causes a p

CVE-2026-141529 LOW
3.7 Dec 01

Denial of service in the Addressable Ruby gem 2.9.1 through 2.9.x lets unauthenticated remote attackers consume excessiv

CVE-2026-141524 LOW
3.7 Dec 01

Addressable, the Ruby URI and RFC 6570 template library, takes the variable name in an unexploded ';', '?', or '&' templ

CVE-2026-141535 LOW
3.7 Dec 01

SSRF filter bypass in the Addressable Ruby gem (2.3.5 through 2.9.2) lets an attacker-supplied URL pass a destination ch

CVE-2026-141537 LOW
3.7 Dec 01

Quadratic-time Unicode normalization in the Ruby Addressable gem (2.0.0 through 2.9.2) lets remote attackers burn CPU on

CVE-2026-141536 LOW
3.7 Dec 01

Addressable's URI#request_uri (versions 2.1.2 through 2.9.2) returns the path and query verbatim, so stored control char

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