nossrf
CVE-2025-2691
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted hostname to application
-
Deliverynossrf validation bypass
-
ExploitDNS resolution to internal IP
-
ExecutionApplication fetches internal resource
-
ImpactExfiltrate sensitive data or access restricted services
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 target application to accept user-controlled URL input and pass it through nossrf library validation before making server-side HTTP requests. Specifically, the vulnerable code path must: (1) allow attackers to supply full hostnames/domains rather than just path components, and (2) use nossrf validation results to permit/deny backend HTTP requests without additional security controls. Applications using nossrf only for logging, analytics, or non-request-making validation are not exploitable. Attack surface is limited by whether the application exposes URL parameters in web forms, API endpoints, webhook configurations, RSS feed subscriptions, or similar user-controllable input vectors. The low attack complexity (AC:L) and no privilege requirement (PR:N) indicate the bypass works against default nossrf configurations without special conditions. Exploitation is limited by network topology - the server making requests must have network access to the targeted internal resources (cloud metadata endpoints, internal services, localhost daemons). Containerized or heavily firewalled deployments may reduce impact scope but do not eliminate the vulnerability. |
| Impact | CVSS 4.0 score of 7.8 with vector AV:N/AC:L/PR:N/UI:N indicates network-accessible exploitation requiring no authentication or user interaction, with high confidentiality impact (VC:H) and low integrity impact (VI:L). The Exploit maturity (E:P) confirms publicly available proof-of-concept code. However, EPSS probability of 0.14% (34th percentile) suggests attackers are not actively scanning for this vulnerability at scale, contrasting with the low attack complexity. This discrepancy likely reflects limited deployment - nossrf is a utility library used by specific Node.js applications, not a widely deployed platform. Real-world risk depends entirely on whether the vulnerable application exposes user-controlled URL parameters to nossrf validation. Organizations using nossrf should prioritize patching based on their specific implementation: critical priority if nossrf filters externally-supplied URLs in production APIs handling sensitive internal resources, moderate priority if used defensively with additional security layers. The absence of CISA KEV listing despite POC availability suggests exploitation remains targeted at specific applications rather than automated mass scanning. Key decision factor: has the security team explicitly deployed nossrf as an SSRF defense? If yes, this represents a complete control bypass requiring immediate remediation. |
| Exploit ScenarioDerived | An attacker identifies a web application using nossrf <1.0.4 to validate user-supplied URLs before fetching remote content (common in webhook registration, URL preview features, or feed readers). The attacker crafts a malicious hostname using DNS rebinding, IPv6-to-IPv4 mapping (::ffff:127.0.0.1), or octal/hexadecimal IP encoding that passes nossrf's validation but resolves to internal resources like http://169.254.169.254/latest/meta-data/ (AWS metadata service) or http://192.168.1.100:8080/admin (internal administration panel). The application fetches the resolved URL, exposing cloud credentials, internal API keys, or allowing unauthorized actions against internal services. Publicly available exploit code (per Snyk advisory) reduces technical barriers to exploitation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 29, 2026
Authentication bypass in nossrf JavaScript library (versions <1.0.4) enables Server-Side Request Forgery against internal network resources by circumventing the library's SSRF protection mechanism. Attackers can supply hostnames resolving to reserved IP ranges (RFC 1918 private addresses, loopback, link-local) to access internal services despite nossrf being deployed specifically to prevent SSRF attacks. Publicly available exploit code exists (Snyk advisory). EPSS score of 0.14% (34th percentile) indicates limited observed exploitation attempts despite POC availability, likely due to the library's niche usage pattern. No CISA KEV listing indicates targeted rather than widespread exploitation campaigns.
Earlier versions of this analysis (1)
Versions of the package nossrf before 1.0.4 are vulnerable to Server-Side Request Forgery (SSRF) where an attacker can provide a hostname that resolves to a local or reserved IP address space and. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
RemediationAI
Upgrade nossrf to version 1.0.4 or later immediately using npm (npm update nossrf) or yarn package managers. Verify the upgrade succeeded by checking package.json and package-lock.json for version >=1.0.4. If immediate upgrade is not feasible, implement defense-in-depth compensating controls with the following trade-offs: (1) Deploy network egress filtering to block outbound requests from application servers to RFC 1918 private ranges, loopback addresses, and cloud metadata endpoints (169.254.169.254) - this prevents exploitation but may break legitimate internal service communication requiring whitelist maintenance. (2) Implement additional URL validation using alternative libraries (node-ssrf-check, ssrf-req-filter) in series with nossrf - adds processing overhead and complexity but provides redundant protection. (3) Use hostname allowlisting instead of denylisting if feasible - limits functionality to known-good external domains but eliminates entire classes of bypass techniques. Do not rely solely on nossrf <1.0.4 for SSRF protection even with workarounds. Full advisory and patch details: https://security.snyk.io/vuln/SNYK-JS-NOSSRF-9510842.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The nossrf package is a JavaScript library (npm ecosystem, Node.js runtime) designed to validate and sanitize URLs to prevent Server-Side Request Forgery attacks. The vulnerability stems from inadequate hostname resolution validation (CWE-918: Server-Side Request Forgery). The library's filtering logic fails to properly handle DNS rebinding, time-of-check-time-of-use race conditions, or alternative DNS encoding schemes that allow hostnames to resolve to prohibited IP address spaces after passing initial validation checks. Reserved IP ranges include RFC 1918 private networks (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback addresses (127.0.0.0/8), link-local addresses (169.254.0.0/16), and other special-use ranges. Affected applications use nossrf as a security control, trusting it to filter user-supplied URLs before making backend HTTP requests, making this bypass particularly impactful as it defeats the deployed security mechanism.
Know when Nossrf 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
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
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionCVE.org
Versions of the package nossrf before 1.0.4 are vulnerable to Server-Side Request Forgery (SSRF) where an attacker can provide a hostname that resolves to a local or reserved IP address space and bypass the SSRF protection mechanism.
Executive ViewAI
CVE-2025-2691 is an authentication bypass in the nossrf JavaScript library that defeats its core SSRF protection mechanism, allowing attackers to access internal network resources. Organizations using nossrf versions below 1.0.4 face exposure of internal services and sensitive data on private networks. Immediate patching is critical because this vulnerability directly undermines a security control specifically deployed to prevent SSRF attacks.
Apply vendor patch to nossrf 1.0.4 or later. If immediate patching is not possible: implement network-layer access controls restricting application egress to internal RFC 1918 ranges and 127.0.0.0/8 (loopback); disable or restrict application access to cloud metadata endpoints (169.254.169.254); monitor outbound DNS queries and HTTP requests for suspicious internal IP resolution patterns.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB