Critical SSRF and Open Redirect Vulnerability in node-url-parse Package

node-url-parse Updated 02 Oct 2025

Summary

12/08/2018
N/A
Yes i
Critical
10.0

CVE-2018-3774: Incorrect parsing in url-parse. Affects node-url-parse versions < 1.2.0-2. Fixed in 1.2.0-2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The node-url-parse package is a popular library used in Node.js applications for parsing URLs. It provides functionality to extract components from URLs, making it easier for developers to handle web addresses. However, versions prior to 1.4.3 have a critical vulnerability that can lead to security issues such as Server-Side Request Forgery (SSRF) and open redirects, which can compromise the integrity of applications relying on this package.

Vulnerability Detail

The vulnerability arises from incorrect parsing of URLs in versions of node-url-parse prior to 1.4.3. This flaw allows attackers to manipulate the hostname returned by the library, potentially leading to SSRF attacks where an attacker can send requests to internal services or open redirects that redirect users to malicious sites. The impact of this vulnerability is severe, as it can lead to unauthorized access to sensitive data and bypassing of authentication protocols.

How To Fix

Minimum fixed version

1.2.0-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-url-parse

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading the package is not immediately possible, consider implementing input validation to sanitize URLs before they are processed by the node-url-parse library. This can help mitigate the risk of SSRF and open redirect attacks. For example, you can use a regular expression to validate the format of the URLs being parsed.

Conclusion

The node-url-parse package has a critical vulnerability that can lead to SSRF and open redirect attacks. It is crucial for developers to upgrade to the fixed version to protect their applications. Additionally, using tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for node-url-parse →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 10.0, indicating a critical level of severity.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The potential consequences include unauthorized access to internal services, data breaches, and the ability for attackers to redirect users to malicious websites.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software by using just a manifest file like package-lock.json.

If immediate upgrading is not feasible, implement input validation as a temporary workaround to reduce the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for node-url-parse.

How To Fix

Minimum fixed version

1.2.0-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-url-parse

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback