Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2022-2900: Throw if url is invalid. Add a length limit. · IonicaBizau/parse-url@b88c81d

Server-Side Request Forgery (SSRF) in GitHub repository ionicabizau/parse-url prior to 8.1.0.

CVE
#git#ssrf#ssh

@@ -17,6 +17,7 @@ const INPUTS = [

, hash: “”

, search: “”

, query: {}

, parse_failed: false

}

]

, [

@@ -32,6 +33,7 @@ const INPUTS = [

, hash: “”

, search: “”

, query: {}

, parse_failed: false

}

]

, [

@@ -47,6 +49,7 @@ const INPUTS = [

, hash: “some-hash?foo=bar”

, search: “”

, query: {}

, parse_failed: false

}

]

, [

@@ -62,6 +65,7 @@ const INPUTS = [

, hash: “”

, search: “”

, query: {}

, parse_failed: false

}

]

, [

@@ -77,6 +81,7 @@ const INPUTS = [

, hash: “”

, search: “”

, query: {}

, parse_failed: false

}

]

, [

@@ -92,6 +97,7 @@ const INPUTS = [

, hash: “”

, search: “”

, query: {}

, parse_failed: false

}

]

, [

@@ -107,22 +113,24 @@ const INPUTS = [

, hash: “http://a:1:1”

, search: “”

, query: {}

, parse_failed: false

}

]

, [

["[email protected]:my-org/my-repo.git", false],

{

protocols: [ ‘ssh’ ]

, protocol: ‘ssh’

, port: ‘’

, resource: ‘github.my-enterprise.com’

, host: ‘github.my-enterprise.com’

, user: ‘git’

, password: ‘’

, pathname: ‘/my-org/my-repo.git’

, hash: ‘’

, search: ‘’

, query: {}

, protocol: ‘ssh’

, port: ‘’

, resource: ‘github.my-enterprise.com’

, host: ‘github.my-enterprise.com’

, user: ‘git’

, password: ‘’

, pathname: ‘/my-org/my-repo.git’

, hash: ‘’

, search: ‘’

, query: {}

, parse_failed: false

}

]

, [

@@ -138,6 +146,7 @@ const INPUTS = [

, hash: “”

, search: “”

, query: {}

, parse_failed: false

}

]

];

@@ -165,4 +174,17 @@ tester.describe("check urls", test => {

parseUrl(“”)

}).toThrow(/invalid url/i)

})

test.should("throw if url is too long", () => {

parseUrl.MAX_INPUT_LENGTH = 10

test.expect(() => {

parseUrl(“https://domain.com/”)

}).toThrow(/input exceeds maximum length/i)

})

test.should("throw if url is invalid", () => {

test.expect(() => {

parseUrl(“foo”)

}).toThrow(/url parsing failed/i)

})

});

Related news

GHSA-j9fq-vwqv-2fm2: Server-Side Request Forgery (SSRF) in GitHub repository ionicabizau/parse-url

Server-Side Request Forgery (SSRF) in GitHub repository ionicabizau/parse-url prior to 8.1.0.

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907