Join our Newsletter — 33% off our NHI Course
Architecture & Implementation

Addressable

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Architecture & Implementation

Addressable is a Ruby library for parsing, normalising and manipulating Uniform Resource Identifiers and Uniform Resource Locators. It is used where applications need more flexible URL handling than the standard library provides, including resolving relative paths and validating components.

What Addressable Does in Ruby

Addressable is a Ruby library for working with URIs and URLs when applications need more capable parsing, normalisation, and manipulation than the standard library offers. It is commonly used to resolve relative paths, preserve or rewrite components, and validate URL structure in ways that support application logic rather than just string handling.

That makes it useful anywhere URL data is treated as structured input, not as plain text. In practice, this includes canonicalising links before comparison, transforming links for redirects or API calls, and handling edge cases that would otherwise create inconsistent behaviour across different inputs.

Why Flexible URL Handling Matters

URL handling becomes difficult as soon as applications need to distinguish between equivalent and non-equivalent forms, such as relative versus absolute references, escaped versus unescaped characters, or path changes that alter meaning. A library like Addressable helps reduce ambiguity by applying consistent parsing rules to those structures.

This is especially important in systems that generate links, accept user-supplied URLs, or compare destinations before allowing navigation. Without structured handling, developers often fall back to ad hoc string logic, which can produce subtle bugs around encoding, host comparison, path traversal, or incorrect normalisation.

Addressable is therefore less about “making URLs work” and more about making URL behaviour explicit. That matters for correctness, but it also matters for security because URL interpretation often sits on the boundary between trusted and untrusted input.

How Parsing and Normalisation Change Application Behaviour

Parsing breaks a URL into components such as scheme, host, path, query, and fragment, which lets software reason about each part separately. Normalisation then reshapes those parts into a consistent form, for example by resolving relative segments or standardising how a path is represented.

That consistency is useful when applications need to compare two references that may look different but refer to the same destination. It is also useful when a system needs to enforce rules like “only allow this host” or “only follow links under this base path,” because those checks work better on structured fields than on raw strings.

At the same time, normalisation can change the meaning of an input if it is applied without care. Developers need to be precise about whether they are preserving the original user input, producing a canonical form for storage, or computing a destination for actual use.

Validation, Safety, and Integration Considerations

URL validation is not the same as URL trust. A URL can be syntactically valid and still be undesirable, unsafe, or inappropriate for a given workflow. Addressable helps with structure, but application policy still has to decide which schemes, hosts, ports, and paths are acceptable.

That distinction matters when URL data drives redirects, webhooks, crawler behaviour, outbound requests, or allowlist checks. The safest pattern is to treat the library’s output as parsed data, then apply application-specific validation before using it in security-sensitive decisions.

It also means teams should be careful about mixing normalisation with enforcement. If validation happens before parsing, or if rules are written against a raw string that later gets reinterpreted, the application can end up checking one representation and acting on another.

Where Addressable Fits in a Secure Development Workflow

Addressable belongs in the layer where developers need deterministic URL semantics, not as a substitute for policy, input validation, or outbound request controls. Its value is highest when teams need predictable transformations and component-level inspection across a wide variety of URL forms.

OWASP API Security Top 10 is a useful companion when URL handling affects API routing, object access, or request construction, because broken URL logic can contribute to access-control mistakes and unsafe consumption patterns. NIST SP 800-53 Rev 5 Security and Privacy Controls also reinforces the need for controlled input handling, access enforcement, and system integrity around externally supplied data.

For teams building software supply chains and secure Ruby applications, the broader lesson is straightforward: use a URL library to structure the data, then use application controls to decide what is permitted.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while OWASP ASVS and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV4 — API and Web ServiceAddressable supports structured URL handling used in API request and routing logic.
Recommendation — Validate URL handling and enforcement points in API logic before using parsed components for routing or access decisions.
OWASP API Security Top 10API5 — Broken Function Level AuthorizationURL manipulation can influence access to functions and routes when path handling is weak.
Recommendation — Check that URL-derived routes cannot bypass function-level authorization.
NIST SP 800-53 Rev 5SI-10 — Information Input ValidationThe library is used to parse and normalise untrusted URL input before application use.
Recommendation — Validate URL input before consuming parsed components in security-sensitive workflows.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org