Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | hosted-git-info | unspecified – < 3.0.8 | 3.0.8 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-hosted-git-info | 3.0.8-1 | — |
| Debian 13 | node-hosted-git-info | 3.0.8-1 | — |
| Debian 12 | node-hosted-git-info | 3.0.8-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | node-hosted-git-info | 2.8.5-1ubuntu0.1~esm1 | USN-5216-1 |
| Ubuntu Pro 18.04 LTS | node-hosted-git-info | 2.5.0-1ubuntu0.1~esm1 | USN-5216-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | nodejs +3 | 1:12.22.3-2.module+el8.4.0+11732+c668cc9f | RHSA-2021:3074, RHSA-2021:3073 |
| RHEL 8 | nodejs-nodemon | 2.0.3-1.module+el8.3.0+6519+9f98ed83 | RHSA-2021:3074, RHSA-2021:3073 |
| RHEL 8 | nodejs-packaging | 17-3.module+el8.1.0+3369+37ae6a45 | RHSA-2021:3074, RHSA-2021:3073 |
| RHEL 8 | npm | 1:6.14.13-1.12.22.3.2.module+el8.4.0+11732+c668cc9f | RHSA-2021:3074, RHSA-2021:3073 |
| RHEL 3 | rh-nodejs12-nodejs +2 | 12.22.2-1.el7 | RHSA-2021:2931 |
| RHEL 3 | rh-nodejs12-nodejs-nodemon +1 | 2.0.3-2.el7 | RHSA-2021:2932, RHSA-2021:2931 |
| RHEL 3 | rh-nodejs12-npm | 6.14.13-12.22.2.1.el7 | RHSA-2021:2931 |
| RHEL 3 | rh-nodejs14-nodejs +2 | 14.17.2-1.el7 | RHSA-2021:2932 |
| RHEL 3 | rh-nodejs14-npm | 6.14.13-14.17.2.1.el7 | RHSA-2021:2932 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.2 EUS | nodejs +3 | 1:12.22.5-1.module+el8.2.0+12241+a3db445b | RHSA-2021:3638 |
| RHEL 8.2 EUS | nodejs-nodemon | 1.18.3-1.module+el8.1.0+3369+37ae6a45 | RHSA-2021:3638 |
| RHEL 8.2 EUS | nodejs-packaging | 17-3.module+el8.1.0+3369+37ae6a45 | RHSA-2021:3638 |
| RHEL 8.2 EUS | npm | 1:6.14.14-1.12.22.5.1.module+el8.2.0+12241+a3db445b | RHSA-2021:3638 |
| RHEL 8.1 EUS | nodejs +3 | 1:12.22.5-1.module+el8.1.0+12238+63fe3aec | RHSA-2021:3639 |
| RHEL 8.1 EUS | nodejs-nodemon | 1.18.3-1.module+el8.1.0+3369+37ae6a45 | RHSA-2021:3639 |
| RHEL 8.1 EUS | nodejs-packaging | 17-3.module+el8.1.0+3369+37ae6a45 | RHSA-2021:3639 |
| RHEL 8.1 EUS | npm | 1:6.14.14-1.12.22.5.1.module+el8.1.0+12238+63fe3aec | RHSA-2021:3639 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | nodejs-nodemon | 2.0.3-1.module_el8.4.0+2521+c668cc9f | ALSA-2021:3074, ALSA-2021:3073 |
| AlmaLinux 8 | nodejs-packaging | 17-3.module_el8.3.0+2023+d2377ea3 | ALSA-2021:3074, ALSA-2021:3073 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | nodejs | 1:12.22.3-2.module+el8.4.0+638+5344c6f7 | RLSA-2021:3074, RLSA-2021:3073 |
| Rocky Linux 8 | nodejs-nodemon | 2.0.3-1.module+el8.3.0+100+234774f7 | RLSA-2021:3074, RLSA-2021:3073 |
| Rocky Linux 8 | nodejs-packaging | 17-3.module+el8.3.0+101+f84c7154 | RLSA-2021:3074, RLSA-2021:3073 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | nodejs12 | 12.22.2-4.16.1 | SUSE-SU-2021:2327-1 |
| SLES 15 SP3 | nodejs14 | 14.17.2-5.12.1 | SUSE-SU-2021:2354-1 |
| SLES 15 SP2 | nodejs-common | 2.0-3.2.1 | SUSE-SU-2021:2620-1 |
| SLES 15 SP2 | nodejs10 | 10.24.1-1.36.1 | SUSE-SU-2021:2353-1 |
| SLES 15 SP2 | nodejs12 | 12.22.2-4.16.1 | SUSE-SU-2021:2327-1 |
| SLES 15 SP2 | nodejs14 | 14.17.2-5.12.1 | SUSE-SU-2021:2354-1 |
| SLES 15 SP2 | nodejs8 | 8.17.0-10.12.2 | SUSE-SU-2021:2618-1 |
| SLES 15 SP1 | nodejs-common | 2.0-3.2.1 | SUSE-SU-2021:2620-1 |
| SLES 15 SP1 | nodejs10 | 10.24.1-1.36.1 | SUSE-SU-2021:2353-1 |
| SLES 15 SP1 | nodejs8 | 8.17.0-3.47.2 | SUSE-SU-2021:2620-1 |
| SLES 15 | nodejs-common | 2.0-3.2.1 | SUSE-SU-2021:2620-1 |
| SLES 15 | nodejs10 | 10.24.1-1.36.1 | SUSE-SU-2021:2353-1 |
| SLES 15 | nodejs8 | 8.17.0-3.47.2 | SUSE-SU-2021:2620-1 |
| SLES 12 | nodejs10 | 10.24.1-1.39.1 | SUSE-SU-2021:2323-1 |
| SLES 12 | nodejs12 | 12.22.2-1.32.1 | SUSE-SU-2021:2326-1 |
| SLES 12 | nodejs14 | 14.17.2-6.12.1 | SUSE-SU-2021:2319-1 |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP1 | nodejs-common | 2.0-3.2.1 | SUSE-SU-2021:2620-1 |
| SLES for SAP 15 SP1 | nodejs10 | 10.24.1-1.36.1 | SUSE-SU-2021:2353-1 |
| SLES for SAP 15 SP1 | nodejs8 | 8.17.0-3.47.2 | SUSE-SU-2021:2620-1 |
| SLES for SAP 15 | nodejs-common | 2.0-3.2.1 | SUSE-SU-2021:2620-1 |
| SLES for SAP 15 | nodejs10 | 10.24.1-1.36.1 | SUSE-SU-2021:2353-1 |
| SLES for SAP 15 | nodejs8 | 8.17.0-3.47.2 | SUSE-SU-2021:2620-1 |
| SLE HPC 15 SP1 | nodejs-common | 2.0-3.2.1 | SUSE-SU-2021:2620-1 |
| SLE HPC 15 SP1 | nodejs10 | 10.24.1-1.36.1 | SUSE-SU-2021:2353-1 |
| SLE HPC 15 SP1 | nodejs8 | 8.17.0-3.47.2 | SUSE-SU-2021:2620-1 |
| SLE HPC 15 | nodejs-common | 2.0-3.2.1 | SUSE-SU-2021:2620-1 |
| SLE HPC 15 | nodejs10 | 10.24.1-1.36.1 | SUSE-SU-2021:2353-1 |
| SLE HPC 15 | nodejs8 | 8.17.0-3.47.2 | SUSE-SU-2021:2620-1 |
| SUSE Manager Server 4.0 | nodejs-common | 2.0-3.2.1 | SUSE-SU-2021:2620-1 |
| SUSE Manager Server 4.0 | nodejs10 | 10.24.1-1.36.1 | SUSE-SU-2021:2353-1 |
| SUSE Manager Server 4.0 | nodejs8 | 8.17.0-3.47.2 | SUSE-SU-2021:2620-1 |
| SUSE Manager Retail Branch Server 4.0 | nodejs-common | 2.0-3.2.1 | SUSE-SU-2021:2620-1 |
| SUSE Manager Retail Branch Server 4.0 | nodejs10 | 10.24.1-1.36.1 | SUSE-SU-2021:2353-1 |
| SUSE Manager Retail Branch Server 4.0 | nodejs8 | 8.17.0-3.47.2 | SUSE-SU-2021:2620-1 |
| SUSE Manager Proxy 4.0 | nodejs-common | 2.0-3.2.1 | SUSE-SU-2021:2620-1 |
| SUSE Manager Proxy 4.0 | nodejs10 | 10.24.1-1.36.1 | SUSE-SU-2021:2353-1 |
| SUSE Manager Proxy 4.0 | nodejs8 | 8.17.0-3.47.2 | SUSE-SU-2021:2620-1 |
| SUSE Enterprise Storage 6 | nodejs-common | 2.0-3.2.1 | SUSE-SU-2021:2620-1 |
| SUSE Enterprise Storage 6 | nodejs10 | 10.24.1-1.36.1 | SUSE-SU-2021:2353-1 |
| SUSE Enterprise Storage 6 | nodejs8 | 8.17.0-3.47.2 | SUSE-SU-2021:2620-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.3 | nodejs10 | 10.24.1-1.36.1 | openSUSE-SU-2021:2353-1 |
| openSUSE Leap 15.3 | nodejs12 | 12.22.2-4.16.1 | openSUSE-SU-2021:2327-1 |
| openSUSE Leap 15.3 | nodejs14 | 14.17.2-5.12.1 | openSUSE-SU-2021:2354-1 |
| openSUSE Leap 15.3 | nodejs8 | 8.17.0-10.12.2 | openSUSE-SU-2021:2618-1 |
| openSUSE Leap 15.2 | nodejs10 | 10.24.1-lp152.2.15.1 | openSUSE-SU-2021:1061-1 |
| openSUSE Leap 15.2 | nodejs12 | 12.22.2-lp152.3.15.1 | openSUSE-SU-2021:1059-1 |
| openSUSE Leap 15.2 | nodejs14 | 14.17.2-lp152.11.1 | openSUSE-SU-2021:1060-1 |
| openSUSE Leap 15.2 | nodejs8 | 8.17.0-lp152.3.14.1 | openSUSE-SU-2021:1113-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | js-jquery | No fix yet | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | nodejs +3 | 1:12.22.3-2.module+el8.4.0+20281+eb64e322 | ELSA-2021-3074, ELSA-2021-3073 |
| Oracle Linux 8 | nodejs-nodemon | 2.0.3-1.module+el8.3.0+7818+6cd30d85 | ELSA-2021-3074, ELSA-2021-3073 |
| Oracle Linux 8 | nodejs-packaging | 17-3.module+el8.1.0+5393+aaf413e3 | ELSA-2021-3074, ELSA-2021-3073 |
| Oracle Linux 8 | npm | 1:6.14.13-1.12.22.3.2.module+el8.4.0+20281+eb64e322 | ELSA-2021-3074, ELSA-2021-3073 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | hosted-git-info | < 2.8.9 | 2.8.9 | GHSA-43f8-2h32-f4cj |
| npm | hosted-git-info | >= 3.0.0, < 3.0.8 | 3.0.8 | GHSA-43f8-2h32-f4cj |
Advisories 36
- ALSA-2021:3074 Moderate: nodejs:14 security, bug fix, and enhancement update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2021:3073 Moderate: nodejs:12 security, bug fix, and enhancement update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2021:3639 Red Hat Security Advisory: nodejs:12 security and bug fix update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2021:3638 Red Hat Security Advisory: nodejs:12 security and bug fix update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2021:3073 Red Hat Security Advisory: nodejs:12 security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2021:3074 Red Hat Security Advisory: nodejs:14 security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2021:2932 Red Hat Security Advisory: rh-nodejs14-nodejs and rh-nodejs14-nodejs-nodemon security update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- RHSA-2021:2931 Red Hat Security Advisory: rh-nodejs12-nodejs and rh-nodejs12-nodejs-nodemon security update Red Hat Security Advisories (RHSA) · Oct 14, 2026
- WID-SEC-2022-1603 IBM Tivoli Netcool/OMNIbus: Mehrere Schwachstellen BSI CERT-Bund (WID) · Mar 24, 2026
- USN-5216-1 node-hosted-git-info vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- RLSA-2021:3073 Moderate: nodejs:12 security, bug fix, and enhancement update Rocky Linux Security Advisories · Feb 4, 2026
- RLSA-2021:3074 Moderate: nodejs:14 security, bug fix, and enhancement update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2021:2327-1 Security update for nodejs12 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:2353-1 Security update for nodejs10 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2323-1 Security update for nodejs10 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2353-1 Security update for nodejs10 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1113-1 Security update for nodejs8 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:2354-1 Security update for nodejs14 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2354-1 Security update for nodejs14 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:2327-1 Security update for nodejs12 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:2618-1 Security update for nodejs8 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1059-1 Security update for nodejs12 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1061-1 Security update for nodejs10 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1060-1 Security update for nodejs14 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2620-1 Security update for nodejs8 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2326-1 Security update for nodejs12 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2618-1 Security update for nodejs8 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2319-1 Security update for nodejs14 SUSE / openSUSE Security Updates · Feb 4, 2026
- FSA-202302 Festo: Several vulnerabilities in FactoryViews CERT@VDE · Feb 2, 2026
- ICSA-22-069-09 Siemens SINEC INS CISA ICS & IT advisories · May 6, 2025
- WID-SEC-2024-0042 Node.js: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 9, 2024
- WID-SEC-2023-0809 IBM QRadar SIEM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 19, 2024
- WID-SEC-2023-0856 IBM QRadar SIEM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 4, 2023
- SSA-389290 SSA-389290: Third-Party Component Vulnerabilities in SINEC INS Siemens ProductCERT · Mar 8, 2022
- ELSA-2021-3074 Moderate: nodejs:14 security, bug fix, and enhancement update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Aug 12, 2021
- ELSA-2021-3073 Moderate: nodejs:12 security, bug fix, and enhancement update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Aug 12, 2021
References
- https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356
- https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3
- https://github.com/npm/hosted-git-info/commits/v2
- https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7
- https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf