Skip to content
Fencer Vulns
medium 5.3

CVE-2021-23362 json

Regular Expression Denial of Service (ReDoS)

published 2021-03-23 5 y ago modified 2026-06-17 4 mo ago also GHSA-43f8-2h32-f4cj , EUVD-2021-0928

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
3.6%
EPSS 3.6% chance of exploitation in 30 days, percentile 89%
public exploits
0
none known

Summary

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.

Patch / fix

  • npm hosted-git-info 2.8.9, 3.0.8
  • n/a hosted-git-info 3.0.8
  • node-hosted-git-info Debian 14, Debian 13, Debian 12 3.0.8-1

debian advisories DEBIAN-CVE-2021-23362

  • node-hosted-git-info Ubuntu Pro 18.04 LTS 2.5.0-1ubuntu0.1~esm1
  • node-hosted-git-info Ubuntu Pro 20.04 LTS 2.8.5-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2021-23362

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • nodejs-packaging RHEL 8, RHEL 8.2 EUS, RHEL 8.1 EUS 17-3.module+el8.1.0+3369+37ae6a45
  • npm RHEL 8 1:6.14.13-1.12.22.3.2.module+el8.4.0+11732+c668cc9f
  • nodejs RHEL 8 1:12.22.3-2.module+el8.4.0+11732+c668cc9f
  • nodejs-nodemon RHEL 8 2.0.3-1.module+el8.4.0+11732+c668cc9f
  • nodejs-full-i18n RHEL 8 1:12.22.3-2.module+el8.4.0+11732+c668cc9f
  • rh-nodejs14-nodejs RHEL 3 SOFTWARE_COLLECTIONS 14.17.2-1.el7
  • rh-nodejs14-nodejs-nodemon RHEL 3 SOFTWARE_COLLECTIONS 2.0.3-2.el7
  • rh-nodejs14-npm RHEL 3 SOFTWARE_COLLECTIONS 6.14.13-14.17.2.1.el7

red hat advisories RHSA-2021:3639RHSA-2021:3638RHSA-2021:3073RHSA-2021:2932RHSA-2021:2931RHSA-2021:3074

  • nodejs8 SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +10 more 8.17.0-3.47.2
  • nodejs-common SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +11 more 2.0-3.2.1
  • nodejs8 SLE Module for Web and Scripting 15 SP2 8.17.0-10.12.2
  • nodejs14 SLE Module for Web and Scripting 15 SP3, SLE Module for Web and Scripting 15 SP2 14.17.2-5.12.1
  • nodejs10 SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +11 more 10.24.1-1.36.1
  • nodejs12 SLE Module for Web and Scripting 15 SP3, SLE Module for Web and Scripting 15 SP2 12.22.2-4.16.1
  • nodejs12 SLE Module for Web and Scripting 12 12.22.2-1.32.1
  • nodejs10 SLE Module for Web and Scripting 12 10.24.1-1.39.1

suse advisories SUSE-SU-2021:2620-1SUSE-SU-2021:2618-1SUSE-SU-2021:2354-1SUSE-SU-2021:2353-1SUSE-SU-2021:2327-1SUSE-SU-2021:2326-1

  • nodejs8 openSUSE Leap 15.2 8.17.0-lp152.3.14.1
  • nodejs8 openSUSE Leap 15.3 8.17.0-10.12.2
  • nodejs10 openSUSE Leap 15.2 10.24.1-lp152.2.15.1
  • nodejs14 openSUSE Leap 15.2 14.17.2-lp152.11.1
  • nodejs12 openSUSE Leap 15.2 12.22.2-lp152.3.15.1
  • nodejs14 openSUSE Leap 15.3 14.17.2-5.12.1
  • nodejs10 openSUSE Leap 15.3 10.24.1-1.36.1
  • nodejs12 openSUSE Leap 15.3 12.22.2-4.16.1

opensuse advisories openSUSE-SU-2021:1113-1openSUSE-SU-2021:2618-1openSUSE-SU-2021:1061-1openSUSE-SU-2021:1060-1openSUSE-SU-2021:1059-1openSUSE-SU-2021:2354-1

  • nodejs-nodemon AlmaLinux 8 2.0.3-1.module_el8.4.0+2521+c668cc9f
  • nodejs-packaging AlmaLinux 8 23-3.module_el8.5.0+254+b4526b16
  • nodejs-packaging AlmaLinux 8 23-3.module_el8.4.0+2522+3bd42762
  • nodejs-packaging AlmaLinux 8 17-3.module_el8.4.0+2224+b07ac28e
  • nodejs-packaging AlmaLinux 8 17-3.module_el8.4.0+2521+c668cc9f
  • nodejs-packaging AlmaLinux 8 17-3.module_el8.3.0+2023+d2377ea3

almalinux advisories ALSA-2021:3074ALSA-2021:3073

  • nodejs Rocky Linux 8 1:14.17.3-2.module+el8.4.0+639+18660d0d
  • nodejs-nodemon Rocky Linux 8 2.0.3-1.module+el8.6.0+982+9fdca2d4
  • nodejs-nodemon Rocky Linux 8 2.0.3-1.module+el8.3.0+100+234774f7
  • nodejs-nodemon Rocky Linux 8 2.0.3-1.module+el8.4.0+638+5344c6f7
  • nodejs-packaging Rocky Linux 8 23-3.module+el8.7.0+1071+4bdda2a8
  • nodejs-packaging Rocky Linux 8 23-3.module+el8.3.0+100+234774f7
  • nodejs-packaging Rocky Linux 8 23-3.module+el8.5.0+733+de4fee6c
  • nodejs Rocky Linux 8 1:12.22.3-2.module+el8.4.0+638+5344c6f7

rocky linux advisories RLSA-2021:3074RLSA-2021:3073

  • nodejs Arch Linux 16.4.1-1

arch linux advisories AVG-2126

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-23362 updated cvss 5.3

nodejs-hosted-git-info: Regular Expression denial of service via shortcutMatch in fromUrl()

  • Red Hat OpenShift Service Mesh 2.0 servicemesh-grafana, servicemesh-prometheus, servicemesh-grafana-prometheus
    affected: no fix available
  • Red Hat Advanced Cluster Management for Kubernetes 2 grc-ui, application-ui, rhacm2/search-ui-rhel8
    affected: no fix available “Fix deferred”
  • Red Hat Ceph Storage 2 grafana Red Hat Ceph Storage 3 grafana
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 npm, pcs, nodejs, pcs-snmp, grafana-pcp, nodejs-libs, +5 more
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux 9 pcs, pcs-snmp, grafana-pcp, js-d3-flame-graph
    affected: no fix available
  • Red Hat OpenShift Container Platform 3.11 openshift3/grafana
    affected: no fix available “Fix deferred”
  • Red Hat OpenShift Container Platform 4 openshift4/ose-grafana, openshift4/ose-thanos-rhel9, openshift4/ose-metering-hive, openshift4/ose-prometheus-rhel9
    affected: no fix available, no fix planned “Will not fix”
  • Red Hat Quay 3 quay/quay-rhel8
    affected: no fix available “Fix deferred”
show 7 more
  • Red Hat Software Collections rh-nodejs10-npm, rh-nodejs10-nodejs Red Hat Virtualization 4 ovirt-web-ui, cockpit-ovirt-uiplugin, cockpit-ovirt-dashboard, ovirt-engine-ui-extensions
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux AppStream (v. 8) nodejs 12.22.3-2.module+el8.4.0+11732+c668cc9f, nodejs 14.17.3-2.module+el8.4.0+11738+3bd42762, nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45, nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83, nodejs-nodemon 2.0.3-1.module+el8.3.0+6519+9f98ed83, nodejs-nodemon 2.0.3-1.module+el8.4.0+11732+c668cc9f, +4 more
    fixed: vendor fix RHSA-2021:3073
  • Red Hat Enterprise Linux AppStream EUS (v. 8.1) nodejs 12.22.5-1.module+el8.1.0+12238+63fe3aec, nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45, nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45, npm 6.14.14-1.12.22.5.1.module+el8.1.0+12238+63fe3aec, nodejs-full-i18n 12.22.5-1.module+el8.1.0+12238+63fe3aec
    fixed: vendor fix RHSA-2021:3639
  • Red Hat Enterprise Linux AppStream EUS (v. 8.2) nodejs 12.22.5-1.module+el8.2.0+12241+a3db445b, nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45, nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45, npm 6.14.14-1.12.22.5.1.module+el8.2.0+12241+a3db445b, nodejs-full-i18n 12.22.5-1.module+el8.2.0+12241+a3db445b
    fixed: vendor fix RHSA-2021:3638
  • Red Hat OpenShift Container Platform 4.8 openshift4/ose-console v4.8.0-202107010336.p0.git.188a490.assembly.stream
    fixed: vendor fix RHSA-2021:2438
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-nodejs12-nodejs 12.22.2-1.el7, rh-nodejs14-nodejs 14.17.2-1.el7, rh-nodejs12-npm 6.14.13-12.22.2.1.el7, rh-nodejs14-npm 6.14.13-14.17.2.1.el7, rh-nodejs12-nodejs-nodemon 2.0.3-2.el7, rh-nodejs14-nodejs-nodemon 2.0.3-2.el7 Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-nodejs12-nodejs 12.22.2-1.el7, rh-nodejs14-nodejs 14.17.2-1.el7, rh-nodejs12-npm 6.14.13-12.22.2.1.el7, rh-nodejs14-npm 6.14.13-14.17.2.1.el7, rh-nodejs12-nodejs-nodemon 2.0.3-2.el7, rh-nodejs14-nodejs-nodemon 2.0.3-2.el7 Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-nodejs12-nodejs 12.22.2-1.el7, rh-nodejs14-nodejs 14.17.2-1.el7, rh-nodejs12-npm 6.14.13-12.22.2.1.el7, rh-nodejs14-npm 6.14.13-14.17.2.1.el7, rh-nodejs12-nodejs-nodemon 2.0.3-2.el7, rh-nodejs14-nodejs-nodemon 2.0.3-2.el7
    fixed: vendor fix RHSA-2021:2931
  • Red Hat Distributed Tracing Jaeger 1 distributed-tracing/jaeger-query-rhel8, distributed-tracing/jaeger-all-in-one-rhel8 Red Hat Advanced Cluster Management for Kubernetes 2 console-ui, console-header Red Hat Ceph Storage 4 rhceph/rhceph-4-dashboard-rhel8 Red Hat OpenShift Container Platform 4.8 openshift4/ose-cli v4.8.0-202106291725.p0.git.1077b05.assembly.stream, openshift4/ose-pod v4.8.0-202107161820.p0.git.051ac4f.assembly.stream, openshift4/ose-etcd v4.8.0-202106152230.p0.git.aefa6bf.assembly.stream, openshift4/ose-tests v4.8.0-202107131424.p0.git.0d958c3.assembly.stream, openshift4/ose-coredns v4.8.0-202106291913.p0.git.642b46e.assembly.stream, openshift4/ose-grafana v4.8.0-202106291913.p0.git.b987e4b.assembly.stream, +135 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

3.61% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • snyk.io https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355 referenced PoC, tagged "exploit" by a source, unverified
  • snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
GitHub 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected packages

ecosystem package affected fixed in
npm hosted-git-info
<2.8.9
>=3.0.0, <3.0.8
2.8.9
3.0.8

Affected products

  • n/a hosted-git-info

Classification

Weakness
  • CWE-1333 Inefficient Regular Expression Complexity
  • CWE-400 Uncontrolled Resource Consumption

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.