Skip to main content

dssrf EUVDEUVD-2026-51232

| CVE-2026-54722 HIGH
Improper Neutralization of Equivalent Special Elements (CWE-76)
2026-07-30 https://github.com/HackingRepo/dssrf-js GHSA-cg4g-m8jx-vjv2
8.7
CVSS 4.0 · Vendor: https://github.com/HackingRepo/dssrf-js
View

Attack ChainAIDerived

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

  1. Access
    Craft URL with userinfo prefix (http://x@169.254.169.254/)
  2. Delivery
    Submit to app fetch/webhook endpoint
  3. Exploit
    dssrf strips '@', mis-parses hostname
  4. Execution
    Validator returns safe (bypass)
  5. Persist
    HTTP client connects to internal host
  6. Impact
    Exfiltrate IMDS credentials or internal service data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Special element neutralization
Exploitation Conditions

Exploitation requires that the target application (1) uses dssrf 1.0.3 or earlier as its SSRF allow/deny gate via is_url_safe(), (2) accepts an attacker-controlled URL string, and (3) forwards the ORIGINAL unmodified URL to an HTTP client (e.g. got, axios, fetch) that honors the userinfo@host syntax and connects to the host after the '@'. The concrete trigger is any URL containing a userinfo component, i.e. of the form http://<anything>@<internal-ip-or-host>/ (such as http://2@10.0.0.1/ or http://evil.com@127.0.0.1/), which corrupts hostname parsing so internal-IP checks are skipped. Limiting factors: the flaw only matters where dssrf is the SSRF guard on a server-side fetch path; it does not by itself grant access if network-level egress filtering blocks internal ranges, and no user interaction or authentication is otherwise needed against a default dssrf 1.0.3 deployment.

Impact

The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, base 8.7 High) reflects a network-reachable, low-complexity, unauthenticated bypass, and a working proof-of-concept is published in the advisory - both signals point to genuine, easily reproducible exploitability. No EPSS score, KEV listing, or SSVC decision data was provided, so probability of widespread exploitation cannot be quantified; absence of KEV combined with the extremely narrow deployment footprint of this obscure library suggests the real-world blast radius is small and would be limited to the specific applications that embed dssrf as their SSRF guard. Note a signal mismatch worth flagging: the provided vector rates impact as VI:H/VC:N (integrity only), yet an SSRF bypass typically enables reading internal/IMDS data (a confidentiality impact) - verify the impact dimension against how the consuming application uses the library. Overall this is a real, credible defense-in-depth defeat for affected integrations, but its priority scales with how commonly dssrf is actually deployed, which is low.

Exploit ScenarioDerived

An application uses dssrf 1.0.3 to vet user-supplied URLs (e.g. a webhook, link preview, or image-fetch feature) before requesting them server-side. An attacker submits http://2@169.254.169.254/latest/meta-data/iam/security-credentials/; is_url_safe() strips the '@', mis-parses the host as a non-resolving string, and returns true, after which the server's HTTP client honors the original userinfo URL and connects to the AWS metadata endpoint, returning internal data or credentials to the attacker. The published PoC (using nock and got against 10.0.0.1) confirms the bypass works with no authentication and low complexity.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – Jul 30, 2026

SSRF filter bypass in the dssrf npm library (versions <= 1.0.3) lets attackers defeat the is_url_safe() guard by prefixing a URL with a userinfo component (e.g. http://evil.com@127.0.0.1/). Because remove_at_symbol_in_string() strips the '@' from the raw string before new URL() parses it, the hostname is corrupted into a non-resolving string that passes all internal-IP checks, while an HTTP client fed the original URL still connects to the internal host. Publicly available exploit code exists (working PoC using nock/got in the advisory), though there is no evidence of active exploitation; this vector was missed by the earlier GHSA-8p33-q827-ghj5 fix.

Earlier versions of this analysis (1)
v1 Jul 30, 2026 - 16:51

SSRF filter bypass in the dssrf npm package (versions <= 1.0.3) lets remote attackers defeat the library's internal-IP protection by embedding a userinfo component in the URL. Because is_url_safe strips all '@' characters from the raw string before parsing, a URL like http://evil.com@127.0.0.1/ is mangled into an invalid hostname (evil.com127.0.0.1) that fails IP and DNS checks, so the validator returns 'safe' while the downstream HTTP client still connects to the real host (127.0.0.1, 10.0.0.0/8, 169.254.169.254 IMDS, etc.). Publicly available exploit code exists in the GHSA-cg4g-m8jx-vjv2 advisory; no public in-the-wild exploitation has been reported.

RemediationAI

Vendor-released patch: upgrade dssrf to 1.0.4, which removes the remove_at_symbol_in_string() call from the URL-safety path and instead rejects any parsed URL whose username or password (userinfo) component is non-empty; see the fix in PR https://github.com/HackingRepo/dssrf-js/pull/98 and commit 9211f91bf532433a1a1b27d946571546a63664b3. If you cannot upgrade immediately, add a compensating pre-check in your own code that rejects any URL where the parsed URL.username or URL.password is non-empty (equivalently, block URLs whose authority contains '@' before the host) before passing it to dssrf or to any HTTP client - the trade-off is that legitimate URLs carrying embedded basic-auth credentials will also be refused, which is acceptable for most SSRF-sensitive fetch paths. As an additional layer, ensure the outbound HTTP client is confined by network egress rules that deny access to loopback, RFC1918, link-local, and 169.254.169.254 (IMDS) ranges, so a validator bypass cannot reach cloud metadata or internal services.

Affected VersionsENISA

dssrf-js < 1.0.4

Affected Packages

npm dssrf fix: 1.0.4
euvd dssrf_js fix: 1.0.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

dssrf is a JavaScript/TypeScript SSRF-mitigation library whose is_url_safe() function is meant to reject URLs pointing at internal or link-local addresses before an application fetches them. The flaw is rooted in CWE-76 (Improper Neutralization of Equivalent Special Elements): per RFC 3986, the '@' in a URL authority separates the userinfo (credentials) from the host, and WHATWG's new URL() parser correctly discards userinfo when computing .hostname. By pre-stripping every '@' from the raw string with remove_at_symbol_in_string() before parsing, dssrf merges the userinfo into the host, so 'evil.com@127.0.0.1' becomes the bogus hostname 'evil.com127.0.0.1', which is neither a bare IPv4/IPv6 literal nor resolvable, causing is_hostname_resolve_to_internal_ip() to return NXDOMAIN and the validator to declare the URL safe. The CPE identifies the single affected package as pkg:npm/dssrf.

Know when the next one hits your stack

  • 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 (https://github.com/HackingRepo/dssrf-js) PRIMARY 8.7 HIGH
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
vuln.today AI 8.2 HIGH

Network-reachable, unauthenticated, low-complexity SSRF-guard bypass; confidentiality High from reading internal/IMDS data, integrity Low from limited internal request forgery.

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

Primary rating from Vendor (https://github.com/HackingRepo/dssrf-js).

CVSS VectorVendor: https://github.com/HackingRepo/dssrf-js

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

Lifecycle Timeline

3
Analysis Updated
Jul 30, 2026 - 17:28 vuln.today
v2 - CVSS changed
CVSS changed
Jul 30, 2026 - 17:22 NVD
8.7 (HIGH)
CVE Published
Jul 30, 2026 - 16:26 cve.org
HIGH

DescriptionCVE.org

Summary

is_url_safe in v1.0.3 contains an SSRF bypass. remove_at_symbol_in_string is applied to the raw URL string before new URL() parses it. This strips the @ that separates userinfo from host, corrupting the hostname so internal IPs are never checked.

Vulnerability

In helpers.ts, is_url_safe does:

ts
u = remove_at_symbol_in_string(u);   // strips ALL '@' from the raw string
// ...
const parsed = new URL(u);
const hostname = parsed.hostname;    // resolved from the corrupted string

What happens step by step

Input: http://evil.com@127.0.0.1/

  1. remove_at_symbol_in_string → http://evil.com127.0.0.1/
  2. new URL(...) → hostname = "evil.com127.0.0.1"
  3. Not a bare IP, not IPv6 → passes all IP checks
  4. is_hostname_resolve_to_internal_ip("evil.com127.0.0.1") → NXDOMAIN → returns false
  5. Result: true (safe) - but any HTTP client using the *original* URL connects to 127.0.0.1

Proof of Concept

js
import nock from 'nock';
import { got } from 'got';
import { is_url_safe } from 'dssrf';

// Simulate an internal server at 10.0.0.1 that returns secret data
nock('http://10.0.0.1:80').persist().get('/').reply(200, 'SECRET_DATA');

const BYPASS_URL = 'http://2@10.0.0.1/';
const PLAIN_URL  = 'http://10.0.0.1/';

// dssrf should block both - it only blocks the plain one
console.log('--- dssrf validator ---');
console.log(`is_url_safe('${PLAIN_URL}')   =`, await is_url_safe(PLAIN_URL),  '← correctly blocked');
console.log(`is_url_safe('${BYPASS_URL}') =`, await is_url_safe(BYPASS_URL), '← ⚠️  BYPASSED (should be false)');

// HTTP client with the bypass URL - gets SECRET_DATA back from 10.0.0.1
console.log('\n--- HTTP client ---');
try {
  const res = await got(BYPASS_URL, { retry: { limit: 0 } });
  console.log(`got('${BYPASS_URL}') response:`, res.body, '← ⚠️  VULNERABLE');
} catch (e) {
  console.log(`got('${BYPASS_URL}') blocked:`, e.message);
}

Root Cause

@ in a URL separates userinfo (credentials) from host. Stripping it from the raw string before parsing destroys that boundary. The fix is to reject any URL that contains a userinfo component after parsing.

Suggested Fix

Remove the remove_at_symbol_in_string call from is_url_safe and add a userinfo check after new URL():

ts
const parsed = new URL(u);

// Reject userinfo - '@' in authority is a classic SSRF bypass vector
if (parsed.username !== "" || parsed.password !== "") {
  return false;
}

A working patch verified against 15 vectors (all internal IPv4 ranges, IMDS, IPv6 via userinfo, and legitimate public URLs) is ready to submit as a PR.

Impact

  • Affected version: 1.0.3 (latest)
  • Bypasses: all internal IPv4 ranges, IPv6 loopback/ULA/link-local, AWS IMDS (169.254.169.254), any internal hostname via userinfo prefix
  • Note: The GHSA-8p33-q827-ghj5 advisory patched version (1.0.3) should be updated since this vector was not covered by that fix

Users are strongly advised to upgrade to dssrf 1.0.4

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

The dssrf npm library (versions 1.0.3 and earlier) contains a server-side request forgery filter bypass that allows attackers to access internal systems and resources; publicly available exploit code exists. Organizations running applications with this vulnerable dependency risk unauthorized access to internal networks, databases, and sensitive services. A vendor patch is available and deployment should be prioritized across all affected services immediately.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Rare
obscure single-maintainer npm SSRF library, negligible enterprise footprint
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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.3%
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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.

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