Critical URL Redirection Vulnerability in node-url-parse Package

node-url-parse Updated 02 Oct 2025

Summary

26/07/2021
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2021-3664: url-parse is vulnerable to URL Redirection to Untrusted Site. Affects node-url-parse versions < 1.5.3-1. 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 the Node.js ecosystem that provides functionality for parsing URLs. It is essential for applications that require URL manipulation and validation. However, this package has been identified to have a vulnerability that allows for URL redirection to untrusted sites, potentially exposing users to phishing attacks or other malicious activities.

Vulnerability Detail

The vulnerability, identified as DEBIAN-CVE-2021-3664, arises from improper handling of URLs within the node-url-parse package. This flaw can be exploited by an attacker to redirect users to untrusted sites, leading to potential data theft or malware installation. The vulnerability affects multiple versions of the package across various Debian releases, making it critical for users to address it promptly.

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

If immediate updating is not possible, a temporary workaround is to implement input validation to restrict the URLs that can be processed by the application. This can help mitigate the risk of redirection to untrusted sites.

Conclusion

The node-url-parse package has a critical vulnerability that allows for URL redirection to untrusted sites. It is essential for users to update to the patched version 1.5.3-1 to mitigate risks. Implementing input validation can serve as a temporary measure until the update is applied.

See every vulnerability recorded for node-url-parse →

Share this vulnerability

FAQ

The vulnerability allows for URL redirection to untrusted sites, which can lead to phishing attacks.

All versions prior to 1.5.3-1 are affected across Debian 11, 12, 13, and 14.

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

Implement input validation to restrict URLs processed by your application as a temporary workaround.

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