Skip to main content

nossrf CVE-2025-2691

HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2025-03-23 report@snyk.io
7.8
CVSS 4.0 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted hostname to application
  2. Delivery
    nossrf validation bypass
  3. Exploit
    DNS resolution to internal IP
  4. Execution
    Application fetches internal resource
  5. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – 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)
v1 Mar 28, 2026 - 18:32 CVSS 8.8

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

npm nossrf fix: 1.0.4

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

NVD PRIMARY 7.8 HIGH
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

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

Lifecycle Timeline

5
Analysis Updated
Apr 29, 2026 - 01:20 vuln.today
v2 - CVSS changed
CVSS changed
Apr 29, 2026 - 01:11 NVD
8.8 (HIGH) 7.8 (HIGH)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
PoC Detected
Mar 26, 2025 - 15:06 vuln.today
Public exploit code
CVE Published
Mar 23, 2025 - 15:15 nvd
HIGH 8.8

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 66% exploitable
Exploit
POC
Public exploit code exists
Data Quality
3 sources
Confidence: Low

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

Priority Score

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

Affected Products (CPE)CVE.org

cpe:2.3:a:nossrf_project:nossrf:*:*:*:*:*:*:*:*

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