Security mailing lists by PureSourceCode

CVE-2021-23362

MEDIUM 5.3CVSS 3.1

Regular Expression Denial of Service in hosted-git-info

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.

Published
23 Mar 2021
Last modified
17 Jun 2026
Assigned by
report@snyk.io
NVD status
Modified
Weakness
CWE-1333CWE-400
Also known as
GHSA-43f8-2h32-f4cj
Sources
NVDJSONOSV GHSA-43f8-2h32-f4cjJSON

Scores

SourceScored byVersionScoreVector / decision
NVD report@snyk.io (Secondary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD npmjs hosted-git-info
cpe:2.3:a:npmjs:hosted-git-info:*:*:*:*:*:*:*:*
>= 2.0.0, < 2.8.9 2.8.9
NVD npmjs hosted-git-info
cpe:2.3:a:npmjs:hosted-git-info:*:*:*:*:*:*:*:*
>= 3.0.0, < 3.0.8 3.0.8
NVD siemens sinec_infrastructure_network_services
cpe:2.3:a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:*
< 1.0.1.1 1.0.1.1
OSV npm hosted-git-info < 2.8.9 2.8.9
OSV npm hosted-git-info >= 3.0.0, < 3.0.8 3.0.8

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 23 Mar 2021)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 6 May 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.