LiveActive security incident?Get immediate response
CVE Record

CVE-2021-43307: Exponential ReDoS in semver-regex

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

MediumCVSS 5.9Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

semver-regex, an npm package for matching semantic versions, can consume excessive CPU when testing attacker-controlled input. The business impact is availability: services using it on exposed request paths could slow down or become unavailable under crafted input.

Executive priority

Treat as a moderate availability risk. Prioritize internet-facing services and high-traffic APIs first, especially where dependency ownership is unclear or input validation is weak.

Technical view

CVE-2021-43307 is an exponential Regular Expression Denial of Service in semver-regex when arbitrary input reaches the package's test() method. The CVSS 3.1 score is 5.9, with network attack vector, high complexity, no privileges, no user interaction, and availability impact only.

Likely exposure

Exposure is most likely in Node.js applications that depend on semver-regex and apply it directly or indirectly to untrusted strings, such as API parameters, uploaded content, package metadata, or form fields.

Exploitation context

The supplied sources describe a trigger condition but do not cite public exploitation. The CVE is not listed as KEV in the provided bundle, so active exploitation should not be assumed from this evidence.

Researcher notes

The affected version range is unspecified in the provided bundle. Analysis should focus on reachability: dependency presence alone is less important than whether attacker-controlled input reaches semver-regex test(). Avoid claiming a fixed version without vendor evidence.

Mitigation direction

  • Inventory applications and lockfiles for semver-regex usage.
  • Check semver-regex, npm, and JFrog guidance for fixed versions or replacement advice.
  • Reduce exposure of code paths that test arbitrary user input.
  • Apply conservative input length limits before regex evaluation where feasible.
  • Monitor affected services for CPU saturation and request latency spikes.

Validation and detection

  • Search dependency manifests and lockfiles for semver-regex.
  • Trace whether semver-regex test() receives attacker-controlled input.
  • Confirm whether affected code is reachable from public or authenticated routes.
  • Review dependency advisory tooling results against CVE-2021-43307.
  • Document any compensating controls if no vendor fix is confirmed.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-1333: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-43307 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.9 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.9CVSS 3.1MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H2.23.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.9Medium
CVSS 3.1 vector shape for CVE-2021-43307Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
semver-regexsemver-regexunspecifiedListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-1333 · source CWE mapping

Inefficient Regular Expression Complexity

Inefficient Regular Expression Complexity represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.