Skip to content

← Public intelligence

npm package

url-parse

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

8 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Medium, CVSS 6.5npmAmendedPublished

    url-parse incorrectly parses hostname / protocol due to unstripped leading control characters.

    CVE-2022-0691 · GHSA-jf5r-8hm2-f872

    Affected
    • npm url-parse >= 0.1.0, < 1.5.9
    Fixed in
    1.5.9· Vendor fix available
    Issue
    Leading control characters in a URL are not stripped when passed into url-parse. This can cause input URLs to be mistakenly be interpreted as a relative URL without a hostname and protocol, while the WHATWG URL parser will trim control characters and treat it as an absolute URL. If url-parse is used in security decisions involving the hostname / protocol, and the input URL is used in a client which uses the WHATWG URL parser, the decision may be incorrect. This can also lead to a cross-site scripting (XSS) vulnerability if url-parse is used to check for the javascript: protocol in URLs. See following example:

    Recommended action: Upgrade to 1.5.9 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. Critical, CVSS 9.1npmAmendedPublished

    Authorization Bypass Through User-Controlled Key in url-parse

    CVE-2022-0686 · GHSA-hgjh-723h-mx2j

    Affected
    • npm url-parse < 1.5.8
    Fixed in
    1.5.8· Vendor fix available
    Issue
    url-parse prior to version 1.5.8 is vulnerable to Authorization Bypass Through User-Controlled Key.

    Recommended action: Upgrade to 1.5.8 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. Medium, CVSS 6.5npmAmendedPublished

    url-parse Incorrectly parses URLs that include an '@'

    CVE-2022-0639 · GHSA-8v38-pw62-9cw2

    Affected
    • npm url-parse >= 1.0.0, < 1.5.7
    Fixed in
    1.5.7· Vendor fix available
    Issue
    A specially crafted URL with an '@' sign but empty user info and no hostname, when parsed with url-parse, url-parse will return the incorrect href. In particular, Will return: If the 'hostname' or 'origin' attributes of the output from url-parse are used in security decisions and the final 'href' attribute of the output is then used to make a request, the decision may be incorrect.

    Recommended action: Upgrade to 1.5.7 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. Medium, CVSS 5.3npmAmendedPublished

    Authorization bypass in url-parse

    CVE-2022-0512 · GHSA-rqff-837h-mm52

    Affected
    • npm url-parse >= 0.1.0, < 1.5.6
    Fixed in
    1.5.6· Vendor fix available
    Issue
    Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.6.

    Recommended action: Upgrade to 1.5.6 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  5. Medium, CVSS 5.3npmAmendedPublished

    Improper Validation and Sanitization in url-parse

    CVE-2020-8124 · GHSA-46c4-8wrp-j99v

    Affected
    • npm url-parse >= 0.1.0, < 1.4.5
    Fixed in
    1.4.5· Vendor fix available
    Issue
    Insufficient validation and sanitization of user input exists in url-parse npm package version 1.4.4 and earlier may allow attacker to bypass security checks.

    Recommended action: Upgrade to 1.4.5 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  6. Medium, CVSS 6.1npmAmendedPublished

    Open redirect in url-parse

    CVE-2021-3664 · GHSA-hh27-ffr2-f2jc

    Affected
    • npm url-parse >= 0.1.0, < 1.5.2
    Fixed in
    1.5.2· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 1.5.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  7. Medium, CVSS 5.3npmAmendedPublished

    Path traversal in url-parse

    CVE-2021-27515 · GHSA-9m6j-fcg5-2442

    Affected
    • npm url-parse >= 0.1.0, < 1.5.0
    Fixed in
    1.5.0· Vendor fix available
    Issue
    url-parse before 1.5.0 mishandles certain uses of backslash such as http:\/ and interprets the URI as a relative path.

    Recommended action: Upgrade to 1.5.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  8. Critical, CVSS 10.0npmAmendedPublished

    Open Redirect in url-parse

    CVE-2018-3774 · GHSA-pv4c-p2j5-38j4

    Affected
    • npm url-parse >= 1.0.0, < 1.4.3
    Fixed in
    1.4.3· Vendor fix available
    Issue
    Versions of url-parse before 1.4.3 returns the wrong hostname which could lead to Open Redirect, Server Side Request Forgery (SSRF), or Bypass Authentication Protocol vulnerabilities. Recommendation Update to version 1.4.3 or later.

    Recommended action: Upgrade to 1.4.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →