URL Redirection Vulnerability in node-url-parse Package

node-url-parse Updated 02 Oct 2025

Summary

26/07/2021
N/A
Yes i
Medium
5.3

CVE-2021-3664: url-parse is vulnerable to URL Redirection to Untrusted Site. Affects node-url-parse across 2 version ranges.

< 1.5.3-1 < 81ab967889b08112d3356e451bf03e6aa0cbb7e0

Fixed in 1.5.3-1. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The node-url-parse package is a widely used library in Node.js applications that provides functionality for parsing and manipulating URLs. It is essential for developers who need to handle URLs effectively within their applications. However, this package has been identified as vulnerable to URL redirection, which can lead to potential security risks if not addressed.

Vulnerability Detail

The vulnerability, identified as CVE-2021-3664, allows for URL redirection to untrusted sites. This issue arises from improper validation of URLs, which can be exploited by attackers to redirect users to malicious websites. The ramifications of this vulnerability include phishing attacks, data theft, and loss of user trust. The vulnerability affects multiple versions of the node-url-parse package across different Debian ecosystems, with a CVSS score of 5.3 indicating a moderate severity level.

How To Fix

Minimum fixed version

1.5.3-1

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

As a temporary workaround, you can implement additional validation checks in your application to ensure that URLs are properly sanitized before use. This can help mitigate the risk of redirection to untrusted sites until the package is updated.

Conclusion

The node-url-parse package is vulnerable to URL redirection, which poses significant security risks. It is crucial for developers to upgrade to the latest version to mitigate these risks. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for node-url-parse →

Share this vulnerability

FAQ

CVE-2021-3664 is a vulnerability in the node-url-parse package that allows for URL redirection to untrusted sites.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The risks include phishing attacks, data theft, and loss of user trust due to redirection to malicious websites.

You can upgrade the package by running the command: npm install node-url-parse@1.5.3-1 in your terminal.

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

Related vulnerabilities

Recent vulnerabilities recorded for node-url-parse.

How To Fix

Minimum fixed version

1.5.3-1

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