Description
CVE-2021-23362 - Medium Severity Vulnerability
Vulnerable Libraries - hosted-git-info-2.5.0.tgz, hosted-git-info-2.6.0.tgz, hosted-git-info-2.8.4.tgz, hosted-git-info-2.8.8.tgz, hosted-git-info-2.8.5.tgz, hosted-git-info-3.0.7.tgz, hosted-git-info-2.7.1.tgz, hosted-git-info-3.0.4.tgz, hosted-git-info-3.0.2.tgz
hosted-git-info-2.5.0.tgz
Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab
Library home page: https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz
Path to dependency file: /integration/injectable-def/package.json
Path to vulnerable library: /integration/injectable-def/node_modules/hosted-git-info/package.json,/integration/hello_world__systemjs_umd/node_modules/hosted-git-info/package.json
Dependency Hierarchy:
- lite-server-2.2.2.tgz (Root Library)
- browser-sync-2.23.6.tgz
- yargs-6.4.0.tgz
- read-pkg-up-1.0.1.tgz
- read-pkg-1.1.0.tgz
- normalize-package-data-2.4.0.tgz
- ❌ hosted-git-info-2.5.0.tgz (Vulnerable Library)
- normalize-package-data-2.4.0.tgz
- read-pkg-1.1.0.tgz
- read-pkg-up-1.0.1.tgz
- yargs-6.4.0.tgz
- browser-sync-2.23.6.tgz
hosted-git-info-2.6.0.tgz
Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab
Library home page: https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.6.0.tgz
Path to dependency file: /integration/cli-hello-world/package.json
Path to vulnerable library: /integration/cli-hello-world/node_modules/hosted-git-info/package.json
Dependency Hierarchy:
- @angular/cli@file:../../node_modules/-9.0.0-rc.11.tgz (Root Library)
- pacote-9.5.8.tgz
- normalize-package-data-2.4.0.tgz
- ❌ hosted-git-info-2.6.0.tgz (Vulnerable Library)
- normalize-package-data-2.4.0.tgz
- pacote-9.5.8.tgz
hosted-git-info-2.8.4.tgz
Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab
Library home page: https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.4.tgz
Path to dependency file: /integration/ng_update_migrations/package.json
Path to vulnerable library: /integration/ng_update_migrations/node_modules/hosted-git-info/package.json
Dependency Hierarchy:
- @angular/cli@file:../../node_modules/-9.0.0-rc.14.tgz (Root Library)
- pacote-9.5.8.tgz
- normalize-package-data-2.5.0.tgz
- ❌ hosted-git-info-2.8.4.tgz (Vulnerable Library)
- normalize-package-data-2.5.0.tgz
- pacote-9.5.8.tgz
hosted-git-info-2.8.8.tgz
Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab
Library home page: https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz
Path to dependency file: /aio/package.json
Path to vulnerable library: /aio/node_modules/hosted-git-info/package.json,/integration/trusted-types/node_modules/hosted-git-info/package.json,/node_modules/hosted-git-info/package.json
Dependency Hierarchy:
- @angular/cli@file:../../node_modules/-11.0.0-rc.1.tgz (Root Library)
- pacote-9.5.12.tgz
- normalize-package-data-2.5.0.tgz
- ❌ hosted-git-info-2.8.8.tgz (Vulnerable Library)
- normalize-package-data-2.5.0.tgz
- pacote-9.5.12.tgz
hosted-git-info-2.8.5.tgz
Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab
Library home page: https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.5.tgz
Path to dependency file: /integration/ivy-i18n/package.json
Path to vulnerable library: /integration/ivy-i18n/node_modules/hosted-git-info/package.json,/integration/cli-hello-world-ivy-i18n/node_modules/hosted-git-info/package.json,/integration/cli-hello-world-ivy-compat/node_modules/hosted-git-info/package.json,/integration/ng_elements_schematics/node_modules/hosted-git-info/package.json,/integration/cli-hello-world/node_modules/hosted-git-info/package.json,/integration/cli-hello-world-lazy/node_modules/hosted-git-info/package.json,/aio/node_modules/hosted-git-info/package.json,/integration/cli-hello-world-lazy-rollup/node_modules/hosted-git-info/package.json,/integration/cli-hello-world-ivy-minimal/node_modules/hosted-git-info/package.json
Dependency Hierarchy:
- npm-run-all-4.1.5.tgz (Root Library)
- read-pkg-3.0.0.tgz
- normalize-package-data-2.5.0.tgz
- ❌ hosted-git-info-2.8.5.tgz (Vulnerable Library)
- normalize-package-data-2.5.0.tgz
- read-pkg-3.0.0.tgz
hosted-git-info-3.0.7.tgz
Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab
Library home page: https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-3.0.7.tgz
Path to dependency file: /integration/trusted-types/package.json
Path to vulnerable library: /integration/trusted-types/node_modules/hosted-git-info/package.json,/aio/node_modules/hosted-git-info/package.json,/node_modules/hosted-git-info/package.json
Dependency Hierarchy:
- @angular/cli@file:../../node_modules/-11.0.0-rc.1.tgz (Root Library)
- npm-package-arg-8.1.0.tgz
- ❌ hosted-git-info-3.0.7.tgz (Vulnerable Library)
- npm-package-arg-8.1.0.tgz
hosted-git-info-2.7.1.tgz
Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab
Library home page: https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz
Path to dependency file: /integration/platform-server/package.json
Path to vulnerable library: /integration/platform-server/node_modules/hosted-git-info/package.json,/aio/aio-builds-setup/dockerbuild/scripts-js/node_modules/hosted-git-info/package.json,/integration/cli-hello-world-ivy-compat/node_modules/hosted-git-info/package.json,/integration/cli-hello-world/node_modules/hosted-git-info/package.json,/integration/cli-hello-world-ivy-minimal/node_modules/hosted-git-info/package.json
Dependency Hierarchy:
- npm-run-all-4.1.5.tgz (Root Library)
- read-pkg-3.0.0.tgz
- normalize-package-data-2.4.0.tgz
- ❌ hosted-git-info-2.7.1.tgz (Vulnerable Library)
- normalize-package-data-2.4.0.tgz
- read-pkg-3.0.0.tgz
hosted-git-info-3.0.4.tgz
Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab
Library home page: https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-3.0.4.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/hosted-git-info/package.json
Dependency Hierarchy:
- cli-11.0.0-rc.1.tgz (Root Library)
- npm-pick-manifest-6.1.0.tgz
- npm-package-arg-8.0.1.tgz
- ❌ hosted-git-info-3.0.4.tgz (Vulnerable Library)
- npm-package-arg-8.0.1.tgz
- npm-pick-manifest-6.1.0.tgz
hosted-git-info-3.0.2.tgz
Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab
Library home page: https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-3.0.2.tgz
Path to dependency file: /integration/cli-hello-world-ivy-compat/package.json
Path to vulnerable library: /integration/cli-hello-world-ivy-compat/node_modules/hosted-git-info/package.json,/integration/ng_update_migrations/node_modules/hosted-git-info/package.json,/integration/cli-hello-world-lazy-rollup/node_modules/hosted-git-info/package.json,/aio/node_modules/hosted-git-info/package.json,/integration/cli-hello-world-ivy-minimal/node_modules/hosted-git-info/package.json,/integration/cli-hello-world-lazy/node_modules/hosted-git-info/package.json,/integration/cli-hello-world/node_modules/hosted-git-info/package.json,/integration/cli-hello-world-ivy-i18n/node_modules/hosted-git-info/package.json,/integration/ng_elements_schematics/node_modules/hosted-git-info/package.json
Dependency Hierarchy:
- @angular/cli@file:../../node_modules/-9.0.0-rc.14.tgz (Root Library)
- update-0.900.0-rc.14.tgz
- npm-package-arg-7.0.0.tgz
- ❌ hosted-git-info-3.0.2.tgz (Vulnerable Library)
- npm-package-arg-7.0.0.tgz
- update-0.900.0-rc.14.tgz
Found in HEAD commit: 2797fc860ca9aad0104137c5726577141d5a44c0
Found in base branch: labs/router
Vulnerability Details
The package hosted-git-info before 3.0.8 are vulnerable to Regular Expression Denial of Service (ReDoS) via regular expression shortcutMatch in the fromUrl function in index.js. The affected regular expression exhibits polynomial worst-case time complexity.
Publish Date: 2021-03-23
URL: CVE-2021-23362
CVSS 3 Score Details (5.3)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: Low
Suggested Fix
Type: Upgrade version
Origin: GHSA-43f8-2h32-f4cj
Release Date: 2021-03-23
Fix Resolution (hosted-git-info): 2.8.9
Direct dependency fix Resolution (lite-server): 2.3.0
Fix Resolution (hosted-git-info): 3.0.8
Direct dependency fix Resolution (@angular/cli): 11.0.0
Step up your Open Source Security Game with Mend here