Skip to content
Fencer Vulns
high 7.5

CVE-2021-3795 json

Inefficient Regular Expression Complexity in sindresorhus/semver-regex

published 2021-09-15 5 y ago modified 2026-09-10 1 mo ago also GHSA-44c6-4v22-4mhx , EUVD-2021-1966

cvss
7.5
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.5%
EPSS 1.5% chance of exploitation in 30 days, percentile 74%
public exploits
0
none known

Summary

semver-regex is vulnerable to Inefficient Regular Expression Complexity

Patch / fix

  • npm semver-regex 3.1.3, 4.0.1
  • sindresorhus sindresorhus/semver-regex 3.1.3, 4.0.1

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-3795 updated cvss 7.5

semver-regex: inefficient regular expression complexity

  • Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/search-api-rhel8, rhacm2/console-api-rhel8
    affected: no fix available “Fix deferred”
  • Red Hat Virtualization 4 ovirt-web-ui, ovirt-engine-ui-extensions
    affected: no fix planned “Will not fix”
  • Red Hat Directory Server 11 389-ds-base
    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

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

Exploits and checks

  • huntr.dev https://huntr.dev/bounties/006624e3-35ac-448f-aab9-7b5183f30e28 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
GitHub 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
npm semver-regex
<3.1.3
>=4.0.0, <4.0.1
3.1.3
4.0.1

Affected products

  • sindresorhus sindresorhus/semver-regex

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.