Read the docs
TI-2021-19300 Aliases CVE-2021-43307GHSA-4x5v-gmq8-25ch

Exponential ReDoS in semver-regex

Priority LOW 36CWE-1333Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-1333.

Summary

An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the semver-regex npm package, when an attacker is able to supply arbitrary input to the test() method

Why it matters now

EPSS 0.01558 75th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed semver-regex (semver-regex): 3.1.4semver-regex (npm): 3.1.4, 4.0.3

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
semver-regexsemver-regexbefore 3.1.43.1.4Patch availableCNA
—semver-regex (npm)before 3.1.43.1.4Patch availableGHSA-4x5v-gmq8-25ch
—semver-regex (npm)4.0.0 to before 4.0.34.0.3Patch availableGHSA-4x5v-gmq8-25ch
  • semver-regex Vendorsemver-regex Affected before 3.1.4 Fixed in 3.1.4 Patch available CNA
  • semver-regex (npm) Vendor— Affected before 3.1.4 Fixed in 3.1.4 Patch available GHSA-4x5v-gmq8-25ch
  • semver-regex (npm) Vendor— Affected 4.0.0 to before 4.0.3 Fixed in 4.0.3 Patch available GHSA-4x5v-gmq8-25ch

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:semver-regex_project:semver-regex:*:*:*:*:*:*:*:*before 3.1.4; 4.0.0 to before 4.0.3VulnerableSemver-regex Project
  • cpe:2.3:a:semver-regex_project:semver-regex:*:*:*:*:*:*:*:* Versions before 3.1.4; 4.0.0 to before 4.0.3 Vulnerable ·Semver-regex Project

Remediation

  • Fix · CNA semver-regex (semver-regex) Fixed in 3.1.4
  • Fix · GHSA-4x5v-gmq8-25ch semver-regex (npm) Fixed in 3.1.4 Advisory →
  • Fix · GHSA-4x5v-gmq8-25ch semver-regex (npm) Fixed in 4.0.3 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-43307
  2. 2026-10-03 Alias added: GHSA-4x5v-gmq8-25ch

References

  • TI-2021-02726 Inefficient Regular Expression Complexity in sindresorhus/semver-regex CVSS 3.1HIGH 7.5

Sources