CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-54722

CVE-2026-54722: Server-Side Request Forgery (SSRF) Bypass via Userinfo Stripping in dssrf-js

Alon Barad
Alon Barad
Software Engineer

Jul 30, 2026·6 min read·93 visits

Executive Summary (TL;DR)

The dssrf-js library before 1.0.4 strips the '@' character from URLs during safety validation. This causes the library to validate a safe, mutated host string (e.g., evil.com127.0.0.1) while the downstream client retrieves the original URL, connecting directly to restricted local resources.

An SSRF validation bypass exists in dssrf-js (v1.0.3 and prior) due to an improper string normalization sequence inside is_url_safe. Before validating the host using Node's WHATWG parser, the helper strips the '@' symbol. This corrupts the parser's authority resolution, while the application's client requests the original, un-sanitized string containing internal IP targets.

Vulnerability Overview

The dssrf-js library is a Node.js utility designed to protect applications from Server-Side Request Forgery (SSRF) attacks. It intercepts user-supplied destination URLs, sanitizing and validating them to prevent connections to loopback networks, private IP spaces, and local metadata endpoints. This is typically achieved by parsing the host, resolving the domain, and cross-referencing IPs against blocklists.

In versions prior to 1.0.4, the library performs unsafe pre-processing on the raw URL string before handing it over to the parsing engine. This design flaw introduces a parser differential between the sanitizer's internal validation context and the downstream client's execution context. As a result, input designed to exploit this differential bypasses safety validation altogether.

Because the validator asserts that the input is safe, the application proceeds to execute the request using the original, unmodified URL. This allows remote attackers to target internal systems, accessing local administrative dashboards, AWS metadata services, and databases without authorization.

Root Cause Analysis

The root cause of this vulnerability lies in the helper function remove_at_symbol_in_string executed within is_url_safe. In version 1.0.3, this function strips all occurrences of the '@' character from the raw URL string before invoking the WHATWG parser.

According to the WHATWG URL standard, the '@' character separates optional userinfo credentials from the host segment in a URL authority blocks: scheme://username:password@hostname/path. When a client parses a URL with this format, it routes the network connection exclusively to the designated host, treating the preceding authority data as credentials.

When an attacker provides an authority-based URL like http://evil.com@127.0.0.1/, the true network destination is the local IP address 127.0.0.1. However, the validator's stripping routine modifies this input string to http://evil.com127.0.0.1/ before validation. The WHATWG parser processes the modified string and extracts the hostname as evil.com127.0.0.1. Because this hostname points to a public namespace or fails DNS lookup completely, the library mistakenly marks the URL as safe. The application then executes the HTTP request against the original, un-mutated URL, making a direct connection to the internal loopback.

Vulnerability Flow Visualization

The workflow diagram below demonstrates how the validation bypass operates step-by-step, contrasting the path taken by the validator with the path taken by the client application.

This execution discrepancy illustrates why string manipulation must never be executed on raw URLs prior to parsing and structure verification.

Code Analysis: Vulnerable vs. Patched Implementations

Comparing the pre-patched codebase with the updated implementation highlights the structural changes introduced to address this parser differential.

// VULNERABLE: dist/helpers.js (v1.0.3 and prior)
async function is_url_safe(url) {
    try {
        let u = normalize_unicode(url);
        u = replace_backslash_with_slash_in_string(u);
        u = replace_two_slashes_url_to_normal_url(u);
        u = remove_at_symbol_in_string(u); // Destructive modification of raw URL
        const schema = normalize_schema(u);
        if (!is_proto_safe(schema)) return false;
        const parsed = new URL(u);
        const hostname = parsed.hostname.replace(/^\[|\]$/g, "");
        if (await is_hostname_resolve_to_internal_ip(hostname)) return false;
        return true;
    } catch {
        return false;
    }
}

In the patched release (v1.0.4), the destructive raw string modification of the '@' symbol has been completely removed. Instead, the validation library delegates structure parsing directly to a new is_parsed_url_safe function.

// PATCHED: dist/helpers.js (v1.0.4)
async function is_parsed_url_safe(parsed) {
    if (!is_proto_safe(parsed.protocol)) return false;
    // Explicitly reject URLs containing userinfo structures
    if (parsed.username !== "" || parsed.password !== "") return false;
    const hostname = parsed.hostname.replace(/^\[|\]$/g, "");
    if (await is_hostname_resolve_to_internal_ip(hostname)) return false;
    return true;
}
 
async function is_url_safe(url) {
    try {
        let u = normalize_unicode(url);
        u = replace_backslash_with_slash_in_string(u);
        u = replace_two_slashes_url_to_normal_url(u);
        const parsed = new URL(u); // Parsed directly on minimally normalized input
        if (!await is_parsed_url_safe(parsed)) return false;
        return true;
    } catch {
        return false;
    }
}

This fix successfully addresses the core design flaw by evaluating the actual structure parsed by Node's URL library and ensuring that credentials blocks are completely rejected, rendering the attack vector non-viable.

Exploitation Methodology

To exploit this vulnerability, the target application must rely on dssrf-js version < 1.0.4 and execute requests with the original, unmodified URL string. An attacker must also identify an endpoint that passes input to the security helper before dispatching the payload to the internal infrastructure.

Consider a target application exposing a preview routing service at https://target.app/preview?url=.... An attacker executes the following command to target an internal Redis server running on the loopback adapter:

curl -v "https://target.app/preview?url=http://example.com@127.0.0.1:6379/"

The backend server calls is_url_safe('http://example.com@127.0.0.1:6379/'). The library strips the '@' character, yielding http://example.com127.0.0.1:6379/. Since the hostname example.com127.0.0.1 resolves to a public DNS destination or fails, validation returns success. The library then passes the original URL to the HTTP client (e.g., got, axios), which connects directly to 127.0.0.1 on port 6379, completely bypassing the SSRF defense.

Impact Assessment and Architectural Risks

The impact of this SSRF bypass is classified as High. An attacker with network access to the vulnerable endpoint can manipulate downstream requests to interact with restricted infrastructure. This includes reaching cloud metadata services (such as AWS IMSv1 at 169.254.169.254), administrative systems, databases, and local daemon sockets.

While the patch successfully blocks userinfo-based bypass attempts, security engineers must recognize that third-party validation wrappers are always prone to residual architectural risks. First, the Time-of-Check to Time-of-Use (TOCTOU) bug class remains. If dssrf-js validates a domain pointing to a safe external IP, a subsequent DNS change can redirect the client's request to an internal network target during connection establishment.

Second, discrepancies in underlying parsing engines remain a concern. If the backend HTTP client interprets complex URL components differently than the Node.js WHATWG parser, attackers may find similar routing anomalies. Applications should rely on network-level segregation and request pinning instead of software-only URL validation wrappers.

Remediation and Detection Engineering

The definitive solution is to upgrade dssrf-js to version 1.0.4 or later. This removes the vulnerable string processing helper and enforces strict userinfo validation checks inside the core module.

For systems that cannot be immediately updated, security teams can implement an application-level input validation filter. Any input string containing the '@' character in its authority block should be dropped immediately before invoking dssrf-js logic.

Additionally, host firewalls, cloud security groups, and local Kubernetes NetworkPolicies should be configured to drop egress traffic originating from application processes directed at private subnets or internal metadata targets. This ensures that even if validation is bypassed, network-level routing policies block unauthorized connections.

Official Patches

HackingRepoGitHub Security Advisory GHSA-cg4g-m8jx-vjv2

Fix Analysis (1)

Technical Appendix

CVSS Score
8.7/ 10
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Affected Systems

HackingRepo/dssrf-js

Affected Versions Detail

Product
Affected Versions
Fixed Version
dssrf-js
HackingRepo
< 1.0.41.0.4
AttributeDetail
CWE IDCWE-76: Improper Neutralization of Equivalent Special Elements
Attack VectorNetwork (AV:N)
CVSS v4.0 Score8.7
EPSS ScoreN/A (New 2026 Vulnerability)
ImpactHigh Integrity Compromise (VI:H)
Exploit StatusNone (No active public exploits cataloged)
KEV StatusFalse

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1133External Remote Services
Initial Access / Persistence
T1071.001Application Layer Protocol: Web Protocols
Command and Control
CWE-76
Improper Neutralization of Equivalent Special Elements

The software receives an input that can be represented in multiple equivalent ways, but fails to neutralize all equivalent representations before processing the input.

Vulnerability Timeline

Technical Issue #97 opened detailing the bypass methodology.
2026-05-29
Pull Request #98 created to patch the vulnerability.
2026-06-02
Fix commit pushed and version 1.0.4 released.
2026-06-02
Official CVE-2026-54722 and GHSA-cg4g-m8jx-vjv2 published.
2026-07-30

References & Sources

  • [1]Official GitHub Advisory
  • [2]GitHub Issue #97
  • [3]GitHub Pull Request #98
  • [4]Vulnerability Fix Commit
  • [5]CVE.org Record

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 5 hours ago•CVE-2026-63304
8.1

CVE-2026-63304: OS Command Injection in WWBN AVideo via listFFmpegProcesses

WWBN AVideo versions through 29.0 contain an OS command injection vulnerability (CWE-78) in the standalone API utility function listFFmpegProcesses(). The function constructs a shell pipeline to monitor active FFmpeg processes by interpolating a user-controlled keyword parameter directly into a single-quoted grep argument without sanitization or shell escaping. An attacker capable of crafting or submitting a valid encrypted codeToExec payload can break out of the single-quoted argument context and execute arbitrary operating system commands with the privileges of the web server user.

Alon Barad
Alon Barad
3 views•9 min read
•about 6 hours ago•CVE-2026-59726
10.0

CVE-2026-59726: Unauthenticated Remote Code Execution in Ruflo MCP Bridge

Ruflo versions prior to 3.16.3 expose the Model Context Protocol (MCP) bridge HTTP endpoints (`POST /mcp` and `POST /mcp/:group`) on all network interfaces (`0.0.0.0:3001`) without authentication. Because the primary JSON-RPC tool dispatcher (`executeTool()`) bypasses existing tool blocklists, an unauthenticated network attacker can invoke the `terminal_execute` tool to achieve arbitrary command execution inside the bridge container. This initial access permits full exfiltration of third-party LLM provider API keys, unauthorized access to the co-located MongoDB instance, and manipulation of the AgentDB learning store.

Alon Barad
Alon Barad
8 views•2 min read
•about 7 hours ago•CVE-2026-59818
6.5

CVE-2026-59818: Improper Certificate Revocation List (CRL) Validation on Split gRPC Listeners in etcd

In etcd versions prior to 3.5.32 and 3.6.13, configuring the server with --listen-client-http-urls decouples HTTP and gRPC traffic onto distinct network listeners. Due to an implementation flaw in how TLS configurations are passed to the gRPC server instance, the Certificate Revocation List (CRL) defined by --client-crl-file is enforced exclusively on the HTTP listener and omitted entirely on the dedicated gRPC listener. This allows an adversary possessing a revoked, CA-signed client certificate to bypass mutual TLS (mTLS) revocation checks and authenticate directly to the gRPC interface.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 8 hours ago•CVE-2026-59831
4.4

CVE-2026-59831: Remote Code Execution via Unvalidated URL Scheme Handling in GitHub CLI

GitHub CLI (gh) versions 2.10.0 through 2.95.0 contain an input validation vulnerability in the `gh codespace jupyter` command path. When connecting to a remote Codespace to launch a JupyterLab session, the CLI retrieves a server URL via a remote procedure call (RPC) and passes it directly to the host operating system's default URL dispatcher without validating the scheme or target host. A compromised or malicious Codespace can return a custom protocol URI, such as `vscode://` or `vscode-insiders://`, allowing an attacker to invoke local desktop application handlers and achieve arbitrary command execution on the developer's workstation.

Alon Barad
Alon Barad
11 views•9 min read
•about 9 hours ago•CVE-2026-59191
6.9

CVE-2026-59191: Path Traversal and Arbitrary File Read in CakePHP TwigView FileLoader

A path traversal vulnerability exists in the cakephp/twig-view plugin for the CakePHP framework prior to versions 1.3.3 and 2.1.2. The Cake\TwigView\Twig\FileLoader::findTemplate() method verifies template existence using PHP's native file_exists() function without ensuring the target path resides within configured application or plugin template directories. When user-controlled input is passed to template inclusion mechanisms, an unauthenticated remote attacker can read arbitrary local files accessible to the PHP runtime.

Alon Barad
Alon Barad
5 views•9 min read
•about 10 hours ago•CVE-2026-64855
8.2

CVE-2026-64855: Cryptographic Signature Verification Bypass in soapbar WS-Security Implementation

CVE-2026-64855 (GHSA-859w-52fx-hcm6) is a cryptographic signature verification and authentication bypass vulnerability in the soapbar Python library prior to version 0.13.0. In vulnerable versions, the verify_envelope_bsp() function derives its trust anchor directly from the incoming SOAP message by extracting an untrusted X.509 certificate embedded inside the wsse:BinarySecurityToken header. Because the function checks only the temporal validity of the extracted certificate without performing Certificate Authority (CA) chain validation or certificate pinning, an unauthenticated network attacker can generate a self-signed certificate, sign an arbitrary SOAP payload, and pass verification.

Amit Schendel
Amit Schendel
9 views•10 min read