Skip to content
Open redirect Disclosed report Intermediate CVE-2021-3664

Open redirect in url-parse

The npm package url-parse mishandles certain URLs, allowing an attacker to redirect users to an untrusted site. This can bypass allow/block lists and enable open redirects or SSRF attacks.

github/advisory-database

Originally disclosed on huntr

Overview

Affected versions of npm url-parse are vulnerable to URL Redirection to Untrusted Site.

Impact

Depending on library usage and attacker intent, impacts may include allow/block list bypasses, SSRF attacks, open redirects, or other undesired behavior.

From the GitHub Advisory Database (GHSA-hh27-ffr2-f2jc, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the library does not correctly parse or validate URLs, allowing crafted input to bypass intended restrictions.

What the attacker needed

Use of vulnerable url-parse version

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

An open redirect is when a website sends you to another site without checking if that site is safe. Here, a library that many programs use to read web addresses can be tricked into treating a malicious address as if it were allowed, so users can be sent to bad sites.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More from github/advisory-database

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.