Skip to content

Update dependency url-parse to 1.5.9 [SECURITY] - abandoned#14

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-url-parse-vulnerability
Open

Update dependency url-parse to 1.5.9 [SECURITY] - abandoned#14
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-url-parse-vulnerability

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented Mar 30, 2022

Mend Renovate

This PR contains the following updates:

Package Change
url-parse 1.5.3 -> 1.5.9

GitHub Vulnerability Alerts

CVE-2022-0512

Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.6.

CVE-2022-0639

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,

parse(\"http://@​/127.0.0.1\")

Will return:

{
 slashes: true,
 protocol: 'http:',
 hash: '',
 query: '',
 pathname: '/127.0.0.1',
 auth: '',
 host: '',
 port: '',
 hostname: '',
 password: '',
 username: '',
 origin: 'null',
 href: 'http:///127.0.0.1'
 }

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.

CVE-2022-0686

url-parse prior to version 1.5.8 is vulnerable to Authorization Bypass Through User-Controlled Key.

CVE-2022-0691

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:

const parse = require('url-parse')
const express = require('express')
const app = express()
const port = 3000

url = parse(\"\\bjavascript:alert(1)\")

console.log(url)

app.get('/', (req, res) => {
 if (url.protocol !== \"javascript:\") {res.send(\"<a href=\\'\" + url.href + \"\\'>CLICK ME!</a>\")}
 })

app.listen(port, () => {
 console.log(`Example app listening on port ${port}`)
 })

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 30, 2022

Visit the preview URL for this PR (updated for commit 27437d5):

https://whack-a-mole-motion--pr14-renovate-npm-url-par-88w4ngs7.web.app

(expires Wed, 18 May 2022 12:41:52 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@renovate renovate Bot changed the title Update dependency url-parse to 1.5.9 [SECURITY] Update dependency url-parse to 1.5.9 [SECURITY] - autoclosed May 11, 2022
@renovate renovate Bot closed this May 11, 2022
@renovate renovate Bot deleted the renovate/npm-url-parse-vulnerability branch May 11, 2022 12:12
@renovate renovate Bot changed the title Update dependency url-parse to 1.5.9 [SECURITY] - autoclosed Update dependency url-parse to 1.5.9 [SECURITY] May 11, 2022
@renovate renovate Bot restored the renovate/npm-url-parse-vulnerability branch May 11, 2022 12:38
@renovate renovate Bot reopened this May 11, 2022
@renovate renovate Bot changed the title Update dependency url-parse to 1.5.9 [SECURITY] Update dependency url-parse to 1.5.9 [SECURITY] - abandoned Mar 12, 2023
@renovate
Copy link
Copy Markdown
Author

renovate Bot commented Mar 12, 2023

Autoclosing Skipped

This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.

@renovate renovate Bot changed the title Update dependency url-parse to 1.5.9 [SECURITY] - abandoned Update dependency url-parse to 1.5.9 [SECURITY] Mar 16, 2023
@renovate renovate Bot changed the title Update dependency url-parse to 1.5.9 [SECURITY] Update dependency url-parse to 1.5.9 [SECURITY] - abandoned Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant